Extracted from Pike v7.6 release 61 at 2005-12-30.
pike.ida.liu.se
[Top]

Method gethrtime()


Method gethrtime

int gethrtime(void|int nsec)

Description

Return the real time since some arbitrary event in the past. The time is normally returned in microseconds, but if the optional argument nsec is nonzero it's returned in nanoseconds.

Note

The actual accuracy on many systems is significantly less than milliseconds or nanoseconds.

See also

time() , System.gettimeofday() , gethrvtime()