Raytrix Light Field SDK  v3.1
Logo
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Events Groups Pages
Time Functions

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...
 

Detailed Description

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.

Function Documentation

RXLF_API double Rx::ApiLF::RxGetTime ( )

Gets the current time in milliseconds as double value.

Returns
The time in milliseconds.
RXLF_API __int64 Rx::ApiLF::RxGetTime64 ( )

Gets the current time in milliseconds as 64 bit integer value.

Returns
The time in milliseconds.
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.

Parameters
uTimeThe time to sleep in milliseconds.