20,741
edits
Philosopher (talk | contribs) m (lang="php" -> lang="nasal") |
|||
Line 204: | Line 204: | ||
<syntaxhighlight lang="nasal"> | <syntaxhighlight lang="nasal"> | ||
# create timer with 1 second interval | # create timer with 1 second interval | ||
var timer = maketimer(1.0, func { print('timer called'); }); | var timer = maketimer(1.0, func { | ||
print('timer called'); | |||
} | |||
); | |||
# start the timer (with 1 second inverval) | # start the timer (with 1 second inverval) | ||
timer.start(); | timer.start(); |