Timer represents a task that should be run only after a certain time period.
Timers are used to schedule tasks such as drawing an animation to the screen.
Timer is created by creating a new timer object and setting a new timer listener.
export main
System.run application new MyApplication
class MyApplication extends Application implements TimerListener
int n = 0
Timer myTimer = new Timer listener this delay 2000 recurring true start true
timer event <Timer timer>
screen.repaint
n++
draw to <Canvas c>
string s = n
c.clear
c.draw string s to 0, 0