Macros | |
| #define | _GNU_SOURCE |
| #define | _REENTRANT |
Functions | |
| void | ngcbClockInit (void) |
| void | ngcbClockGetAbs (ngcb_time_hr *t) |
| void | ngcbClockGet (ngcb_time_hr *t) |
| double | ngcbTimeStamp () |
| uint64_t | ngcbTimeStamp64 () |
| int | _ngcbClockWait (int fd, int waitTime) |
| #define _GNU_SOURCE |
| #define _REENTRANT |
| int _ngcbClockWait | ( | int | fd, |
| int | waitTime ) |
Suspend process execution for waitTime microseconds. The sleep can be interrupted by writing to the file descriptor fd which will be closed in that case. If fd has a negative value then the sleep cannot be interrupted.
| void ngcbClockGet | ( | ngcb_time_hr * | t | ) |
Read a high resolution timestamp from the most stable available clock. To be used to measure time differences.
| void ngcbClockGetAbs | ( | ngcb_time_hr * | t | ) |
Read a high resolution absolute timestamp representing the seconds since UNIX epoch. The functuion uses the most precise available clock.
| void ngcbClockInit | ( | void | ) |
Select and initialize the high resolution clock.
| double ngcbTimeStamp | ( | ) |
Read a high-resolution timestamp and return a double precision floating point value representing the seconds since UNIX epoch.
| uint64_t ngcbTimeStamp64 | ( | ) |
Read a high-resolution timestamp and return a double precision floating point value representing the seconds since UNIX epoch. The value is stored in 64-bit data field.