Go to the source code of this file.
Classes |
|
| class | postime_t |
| Time with millisecond precision. More... |
|
Functions |
|
| postime_t | getcurtime () |
| get the current time |
|
| timespec | postimespec (int timeout) |
| timespec for given millisecond timeout |
|
The functions in this source file, as well as the postime_t class defined here, provide easy access to times in a system-independent way.
Definition in file postime.h.
|
|
get the current time Retrieves the current time with millisecond precision and stores it in a postime_t structure.
|
|
|
timespec for given millisecond timeout Returns a timespec structure that can be used, among other things, for the pthread_cond_timedwait function (which is what it was designed for).
|
1.3.7