TIME
Time management and timing functions.
Availability: Client & Server
Methods
TIME.fixedDelta
client server
Get the fixed delta time for physics updates
Signature: num action()
Returns: num - Fixed delta time value
num result = GAME.TIME.fixedDelta();
TIME.freeze
server
Freeze the game timer (server-side only)
Signature: action()
GAME.TIME.freeze();
TIME.getReadable
client server
Convert a time value to a human-readable string format
Signature: str action(num)
Parameters:
| Name | Type | Description |
|---|---|---|
time | num | Time value in milliseconds |
Returns: str - Human-readable time string
str readable = GAME.TIME.getReadable(0);
TIME.now
client server
Get the current timestamp in milliseconds
Signature: num action()
Returns: num - Current time in milliseconds since epoch
num result = GAME.TIME.now();
TIME.unfreeze
server
Unfreeze the game timer (server-side only)
Signature: action()
GAME.TIME.unfreeze();