ARX  1.0
The next-generation open source augmented reality toolkit.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
Functions
time.h File Reference
#include <stdint.h>
#include <ARX/ARUtil/types.h>
Include dependency graph for time.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

ARUTIL_EXTERN void arUtilTimeSinceEpoch (uint64_t *sec, uint32_t *usec)
 Get the time in seconds since midnight (00:00:00), January 1, 1970, coordinated universal time (UTC). More...
 
ARUTIL_EXTERN double arUtilTimer (void)
 Read the timer. More...
 
ARUTIL_EXTERN void arUtilTimerReset (void)
 Reset the timer. More...
 
ARUTIL_EXTERN void arUtilSleep (int msec)
 Relinquish CPU to the system for specified number of milliseconds. More...
 

Function Documentation

◆ arUtilSleep()

ARUTIL_EXTERN void arUtilSleep ( int  msec)

Relinquish CPU to the system for specified number of milliseconds.

This function calls the native system-provided sleep routine to relinquish CPU control to the system for the specified time.

Parameters
msecSleep time in milliseconds (thousandths of a second).
Since
Not available on Windows Runtime (WinRT).

◆ arUtilTimer()

ARUTIL_EXTERN double arUtilTimer ( void  )

Read the timer.

Returns
Elapsed seconds since last invocation of arUtilTimerReset().
See also
arUtilTimerReset

◆ arUtilTimerReset()

ARUTIL_EXTERN void arUtilTimerReset ( void  )

Reset the timer.

See also
arUtilTimer

◆ arUtilTimeSinceEpoch()

ARUTIL_EXTERN void arUtilTimeSinceEpoch ( uint64_t *  sec,
uint32_t *  usec 
)

Get the time in seconds since midnight (00:00:00), January 1, 1970, coordinated universal time (UTC).

Parameters
secPointer to an unsigned 64-bit interger which will be filled with the seconds portion of the time, or NULL if this value is not required.
secPointer to an unsigned 32-bit interger which will be filled with the microseconds portion the time or NULL if this value is not required. N.B.: The resolution of the returned time is system-specific, and is not guaranteed to have microsecond-resolution.