fe.add_ticks_callback( my_timer );local timer = 0;function my_timer(ticks) { timer += ticks; if ( timer >= 10000 ) { //do something timer = 0; }}