C8Timestamp C8Now();
– Purpose: This returns the current time. The returned value is a standard TIMESTAMP value; in other words, it is the number of microseconds since midnight January 1, 1970 UTC/GMT. Although the time is returned as a number of microseconds, the actual precision depends upon the platform. On Microsoft Windows, the typical return of C8Now() is 15 milliseconds (15,000 microseconds).
Parameters: None.
Returns: The current time as a C8Timestamp.
C8Timestamp C8HighResolutionNow();
– Purpose: This returns the current time. The returned value is a standard TIMESTAMP value; in other words, it is the number of microseconds since midnight January 1, 1970 UTC/GMT. This function uses high-resolution timers for microsecond accuracy on the platforms that support such timers.
Parameters: None.
Returns: The current time as a C8Timestamp.
void C8Sleep(C8Interval us_delay);
– Purpose: The thread sleeps for the specified amount of time. The header file c8types.h contains definitions that may be useful in specifying durations; for example, to delay 3 seconds, use 3*C8PerSecond.
Note that small sleep intervals are probably inappropriate depending on your CPU speed, system clock resolution, and system loading. In general, resolutions less than 100 milliseconds are very imprecise. Even for larger values, the actual length of the sleep will likely not be exactly what was specified.
Parameters:
Returns: Nothing.