Extracted from Pike v7.4 release 35 at 2003-12-09.
pike.ida.liu.se
[Top]
predef::

Method time()


Method time

int time()
int time(int(1..1) one)
float time(int(2..) t)

Description

This function returns the number of seconds since 00:00:00 UTC, Jan 1, 1970.

The second syntax does not call the system call time() as often, but is only updated in the backed (when Pike code isn't running).

The third syntax can be used to measure time more preciely than one second. It return how many seconds has passed since t . The precision of this function varies from system to system.

See also

ctime() , localtime() , mktime() , gmtime()