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

static double Rx::Net::ApiLF::RxGetTime ()
 Gets the current time in milliseconds as double value. More...
 
static System::Int64 Rx::Net::ApiLF::RxGetTime64 ()
 Gets the current time in milliseconds as 64 bit integer value. More...
 
static void Rx::Net::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

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
uTimeThe time to sleep in milliseconds.