A bit off-topic, but I'd like to clarify this:
Quote:
I wouldnt be so crazy to use a global variable to loop, as it is extremely slow.


Not really. The output of this:
//var %t = $ticks | set %a 50000 | while %a { dec %a } | echo -s $calc($ticks - %t)

is only a few msecs bigger than this:
//var %t = $ticks | var %a = 50000 | while %a { dec %a } | echo -s $calc($ticks - %t)

Global variables are only a tiny bit slower than local vars in loops (even if the Variables list contains many variables; this seems to matter in other cases). Of course, local variables are still far more suitable for such things as loops.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com