- Method gethrtime
Return the high resolution real time since some arbitrary event in the past. The time is normally returned in microseconds, but if the optional argument
nsecis nonzero it's returned in nanoseconds.
It's system dependent whether or not this time is monotonic, i.e. if it's unaffected by adjustments of the calendaric clock in the system. System.REAL_TIME_IS_MONOTONIC tells what it is. Pike tries to use monotonic time for this function if it's available.
The actual accuracy on many systems is significantly less than microseconds or nanoseconds. See System.REAL_TIME_RESOLUTION.
- See also