Performance issue in CTimer::getTime() on Windows #1

Open
opened 2018-10-03 15:02:04 +02:00 by Ghost · 0 comments

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

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
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: dorkbox/UDT#1
There is no content yet.