next up previous contents index
Next: General Utility Macros Up: Utility Functions Previous: Drawing Routines

Time Functions

 

Since time dependent functions -- especially with short time intervals -- are machine dependent, we implemented some ones of general interest. Note that the values will wrap around every 71 minutes.

unsigned long g_time_usec (void)
Returns the real time in microseconds.
unsigned long g_usertime_usec (void)
Returns the user time in microseconds, not including the time for system calls.
void g_sleep_usec (unsigned long)
Sleep the given amount of microseconds.



SFB 256 Universität Bonn and IAM Universität Freiburg

Copyright © by the Sonderforschungsbereich 256 at the Institut für Angewandte Mathematik, Universität Bonn.