Timer

A simple millisecond based timer

Initialise a new Timer object by simply calling new Timer()

getTime(): long

Returns the amount of milliseconds since the last reset

hasPassed(double time): boolean

Returns whether the given amount of milliseconds has passed since the last reset

reset(): void

Resets the timer

Last updated