function

time . date . sncode

VERSIONlatest get current time in seconds, msecs and usecs.

TIME

NAME

time - get current time in seconds, msecs and usecs.

SYNOPSIS

time();

DESCRIPTION

This function returns the current time in microseconds, milliseconds and then in seconds.

EXAMPLES

Note: In the followings examples, the _ between the { should be removed to make it work.

res={_{ a=time(); a;}}. return res={"usecs":79337,"msecs":79,"secs":1379677951}.
res={_{ a=time(); sleep(1,200); b = time(); a.secs < b.secs; }}. return res=true.
res={_{ a=time(); sleep(0,10); b = time(); b.msecs - a.msecs; }}. return res=true.

AUTHOR

Written by Pierre Laplante and Caroline Laplante, <laplante@sednove.com>