About
A Timer calls tick event handlers every interval milliseconds after start() and before stop().
Example
class Foo
{
void startTimer()
{
Timer t = new Timer();
t.interval = 2000;
t.tick ~= &myTicked;
t.start();
}
private void myTicked(Timer sender, EventArgs ea)
{
}
}
module dfl.timer;
{
public bool enabled;
[property setter]
public bool enabled;
[property getter]
public final size_t interval;
[property setter]
public final size_t interval;
[property getter]
protected void onTick(EventArgs ea);
public final void start();
public final void stop();
}