Timer
Class function
nevis.system.timer.new()
Instantiates a new timer object.
Sample:
timer = nevis.system.timer.new()
Object methods
timer:getTime()
Returns the current time in milliseconds.
Sample:
now = timer:getTime()
timer:sleep(duration)
Sleeps for the specified duration in milliseconds.
- duration: Duration to sleep in milliseconds.
Sample:
timer:sleep(2000)