Yuari
Documentation

tick

Seconds elapsed since the VM started (a monotonic timer, not the Unix epoch).

Syntax

tick() -> number

Parameters

This function takes no parameters.

Returns

TypeDescription
numberNumber

Description

tick is part of the Core functions library. Core globals are installed in every executor thread and drive output, scheduling and identity.

The operation is performed immediately using the arguments supplied at the call site.

Example

local started = tick()
wait(0.1)
print(tick() - started)

Notes

  • Core globals are available in every script.