Ticker

Ticker which can be used for interval-based timing. Operates at millisecond precision.

Constructors

this
this(Duration interval, bool autoStart)

Create a new Ticker

Members

Functions

setNext
void setNext()

Sets when the next tick occurs

sleep
void sleep()

Sleeps until the next tick

start
void start()

Starts the ticker

Meta