Skip to main content
Skip table of contents

getTimestamp() Function

Syntax
NONE
anInteger = getTimestamp();
Semantics

Returns a timestamp in microseconds (1/1'000'000th of a second) as an integer (64bit). A typical use case is the exact measurement of time intervals, e.g. for profiling and logging purposes.

The time stamp is calculated in microseconds beginning at the Unix epoch.
It's not guarantied that a time stamp is unique. On a sufficiently fast machine it is possible to retrieve two identical time stamps. In some cases, the utility function getSequenceNumber() may be the better solution.

Examples
NONE
set aTimeStamp = getTimestamp();
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.