; ; @ANO_SCRIPT_NAME timer ; @ANO_SCRIPT_VERSION 0.0.1 ; @ANO_SCRIPT_DESCRIPTION Simple timer ; ; @ANO_FLAGS_USE_PROTOS [ ] ; @ANO_FLAGS_VAR_NAME_SUBS [ ] ; @ANO_FLAGS_VAR_WARN_UNUSED [ ] ; ; Copyright (c) 2016-2026, Jani Salonen ; All rights reserved. ; main [exit: 0] { ; Initialize timer to trigger one second from now. Timer function uses ; respawn and repeat attributes to trigger itself again five times half ; of a second interval. ; timer (\ secs: 1, \ nanosecs: 0, \ timer: "my_timer") ; Wait until timers are done. ; print "Press or wait five seconds.\n" sleep(5, 0) } alarm my_timer [respawn: 0:500000, repeat: 5] { print "Timer here.\n" }