SYNOPSIS
|
DESCRIPTION
These functions provide a low-level interface to monotonically increasing
time sources.
Different time backends may be implemented (see
INTERNAL API below).
Agar provides the following backends:
|
INTERFACE
BACKEND INTERFACE
The argument to
AG_SetTimeOps() should point to the following structure:
Init() performs any necessary initialization. Destroy() cleans up any allocated resources. The GetTicks() operation is the backend to AG_GetTicks() and Delay() is the backend to AG_Delay(). |
EXAMPLES
The following code fragment selects the rendering-aware time backend,
agTimeOps_renderer, if it is available:
|
SEE ALSO
AG_Intro(3), AG_Timer(3) |
HISTORY
The AG_Time interface first appeared in Agar 1.3.4 |