Home » U++ Library support » U++ Core » Missing GetTickCount64 (Added function on posix platforms for cross compilation)
Re: Missing GetTickCount64 [message #43825 is a reply to message #43820] |
Wed, 29 October 2014 10:27 |
Tom1
Messages: 1216 Registered: March 2007
|
Senior Contributor |
|
|
Hi,
This is not an easy task. I have spent days or maybe weeks over the last 20 years to get a reliable, precise monotonic timer that works. This relatively recent Microsoft article sheds some light on the task:
http://msdn.microsoft.com/en-us/library/windows/desktop/dn55 3408%28v=vs.85%29.aspx
I guess QueryPerformanceCounter() is the way to go, but it is slow to call and has not been entirely trouble free either. I have solved the problem using the 32 bit timer and some overflow detection solutions to build monotonic timer for longer periods. (Sleeping and hibernating might still be a problem though.)
Best regards,
Tom
|
|
|
Goto Forum:
Current Time: Thu May 16 12:18:49 CEST 2024
Total time taken to generate the page: 0.01437 seconds
|