fbxsdk/core/sync/fbxclock.h File Reference

fbxclock.h File Reference

Functions

void FbxSleep (int pMilliseconds)
 Put the current thread to sleep. More...
 
FbxLongLong FbxGetHighResCounter ()
 Retrieves the current value of the high-resolution performance counter. More...
 
FbxLongLong FbxGetHighResFrequency ()
 Retrieves the frequency of the high-resolution performance counter. More...
 

Function Documentation

void FbxSleep ( int  pMilliseconds)

Put the current thread to sleep.

Parameters
pMillisecondsThe duration of the sleep in milli-seconds.
FbxLongLong FbxGetHighResCounter ( )

Retrieves the current value of the high-resolution performance counter.

Returns
The current value of the high-resolution performance counter, in "counts".
Remarks
To convert "counts" into time, divide it by the frequency available from FbxGetHighResFrequency().
FbxLongLong FbxGetHighResFrequency ( )

Retrieves the frequency of the high-resolution performance counter.

Returns
The frequency of the high-resolution performance counter value, in "counts" per second.
Remarks
The first time this function is called, the frequency is queried from the system and then cached so that further requests are fast. This means it is guaranteed to not change during run-time.

Go to the source code of this file.