elapsed_time - Get elapsed time
uint32 elapsed_time();
Get the elapsed time as the number of milli-seconds since previous interaction of main
.
Returns the number of milli-seconds that has being passed since previous interaction.
uint32 time_counter; main { time_counter += elapsed_time(); if(time_counter >= 10000) { time_counter = 0; combo_run(PressButton16); } } combo PressButton16 { set_val(BUTTON_16, 100.0); wait(100); }