GameTimer

Utilities View source
GameTimer

Seconds elapsed since map start.

Caveat for @Test code: the compiletime interpreter backs this with the wall clock, so it returns a unix epoch timestamp (~1.7e9). At that magnitude a 32 bit real only resolves ~128 second steps, so instants built from smaller offsets are indistinguishable from instantNow() there. Build instants explicitly, e.g. instant(10.), when unit testing package Time.

Functions and constants

public function getElapsedGameTime() returns real