Skip to main content

_START

Timestamp of the beginning of the top-level script run.

_START (along with _ST) are global variables that provide a timestamp, in milliseconds since the Unix epoch, of when the script execution began.

Syntax

_START;
_ST;

Example

A script that wants to track how long their own execution has taken can use _START:

function(context, args) {
// do stuff

return "Ran for " + (Date.now() - _START) + " ms"
}