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 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.
static double Rx::Net::ApiLF::RxGetTime |
( |
| ) |
|
|
static |
Gets the current time in milliseconds as double value.
- Returns
- The time in milliseconds.
static System::Int64 Rx::Net::ApiLF::RxGetTime64 |
( |
| ) |
|
|
static |
Gets the current time in milliseconds as 64 bit integer value.
- Returns
- The time in milliseconds.
static void Rx::Net::ApiLF::RxSleep |
( |
unsigned |
uTime | ) |
|
|
static |
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.
- Parameters
-
uTime | The time to sleep in milliseconds. |