[ prev :: next :: up ] libgg-current (3)

Portable Time Routines

Name

ggCurTime, ggUSleep, ggUSlumber : Portable Time Routines

Synopsis

#include <ggi/gg.h>

int ggCurTime(struct timeval *tv);

int ggUSleep(int usecs);

void ggUSlumber(int usecs);

Description

ggCurTime fills the timeval structure pointed to by :p:`tv` with the current time to the best precision available on the executing platform.

System Message: ERROR/3 (../ggi-core/libgii/doc/libgg.txt, line 127); backlink

Unknown interpreted text role "p".

ggUSleep sleeps for at least :p:`usec` microseconds, to the best precision available on the executing platform, but may be woken up by a signal or other unspecified condition.

System Message: ERROR/3 (../ggi-core/libgii/doc/libgg.txt, line 130); backlink

Unknown interpreted text role "p".

ggUSlumber does the same thing as ggUSleep, but is guaranteed not to return until the alloted time has elapsed.

All times represent wall-clock (real, versus processor) times.

The above routines are often simple macros rather than functions, and as such should not be used by reference.

Return value

ggCurTime returns 0 on success, or a non-zero value if there was an error.

ggUSleep returns 0 when the alloted time interval has elapsed, or a non-zero value if the sleep was interrupted.

 
[ prev :: next :: up ] libgg-current (3)
2006/08/09 02:58:11