Measures elapsed time against the game clock — for profiling a slow handler, or timing how long a player has held an interaction key.

Constructor

new()

Variables

read onlyelapsedMs:Int

Milliseconds since construction or the last restart().

Methods

restart():Int

Resets to zero and returns the elapsed time up to that point.