|Portability||Tested on Linux and Windows.|
This module provides a platform-independent API for using the system's monotonic clock.
- On Windows XP, this uses
GetTickCount, which has a 49.7 day wraparound.
Clockworks around this problem, but the workaround only works if
clockGetTimeis called at least once every 24.8 days.
- On Linux, this uses
CLOCK_MONOTONIC, which (unfortunately) stops when the computer is suspended. Thus,
clockGetTimewill not include time spent sleeping. Do not rely on this behavior, as it may be fixed in a future version of this library.
Return the amount of time that has elapsed since the clock was created
Return a string identifying the time source, such as