Skip to content

Time

now( ) int

Returns the current time in seconds since the Unix epoch.

Example Usage:

var x = now(); // 1708896589

now_ns( ) double

Returns the current time in nanoseconds since the Unix epoch.

Example Usage:

var x = now_ns(); // 1.7089e+18

now_ms( ) double

Returns the current time in milliseconds since the Unix epoch.

Example Usage:

var x = now_ms(); // 1.7089e+12