Pike v8.0 release 1738

Class System.Time

Description

The current time as a structure containing a sec and a usec member.


Variable sec
Variable usec

int System.Time.sec
int System.Time.usec

Description

The number of seconds and microseconds since the epoch and the last whole second, respectively. (See also time())

Note

Please note that these variables will continually update when they are requested, there is no need to create new Time() objects.


Variable usec_full

int System.Time.usec_full

Description

The number of microseconds since the epoch. Please note that pike needs to have been compiled with bignum support for this variable to contain sensible values.


Method create

System.Time System.Time(int fast)

Description

If fast is true, do not request a new time from the system, instead use the global current time variable.

This will only work in callbacks, but can save significant amounts of CPU.