Performance issue in CTimer::getTime() on Windows #1
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
The function CTimer::getTime() is one of the most frequently used function of UDT. It makes use QueryPerformanceFrequency for every single call. According to Microsoft, the performance frequency should be retrieved just once and cached because it won't change. See the description here:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms644905(v=vs.85).aspx