Functions to measure time or to pause API thread. These functions are based on the Windows API function ::QueryPerformanceCounter to obtain a very accurate time measurement.
More...
Functions | |
RXLF_API double | Rx::ApiLF::RxGetTime () |
Gets the current time in milliseconds as double value. More... | |
RXLF_API __int64 | Rx::ApiLF::RxGetTime64 () |
Gets the current time in milliseconds as 64 bit integer value. More... | |
RXLF_API void | Rx::ApiLF::RxSleep (unsigned uTime) |
Pause calling thread for the given number of milliseconds. More... | |
Functions to measure time or to pause API thread. These functions are based on the Windows API function ::QueryPerformanceCounter to obtain a very accurate time measurement.
RXLF_API double Rx::ApiLF::RxGetTime | ( | ) |
Gets the current time in milliseconds as double value.
RXLF_API __int64 Rx::ApiLF::RxGetTime64 | ( | ) |
Gets the current time in milliseconds as 64 bit integer value.
RXLF_API void Rx::ApiLF::RxSleep | ( | unsigned | uTime | ) |
Pause calling thread for the given number of milliseconds.
Note that this implementation of sleep internally only does an actual Sleep for one millisecond and then checks the actual elapsed time with the Windows API function ::QueryPerformanceCounter
. This gives more accurate results in the actual time the thread is paused.
uTime | The time to sleep in milliseconds. |