Coming soon toSteam
Modding docsAPI 1

Module · Scripting core

time

Clocks. For in-game timing use time.now and time.delta; they are real time and keep running while the game is paused.

time.delta(): number

Seconds the previous frame took.

time.frame(): integer

Frames rendered since the game started.

time.now(): number

Seconds since the game started.

time.unix(): number

The current UTC time as Unix seconds, with a fractional part.