Hello to all,
I am testing Haxe.
var timer = new haxe.Timer(10); // 10ms delay
var now = Date.now();
timer.run = function() {trace(now.getSeconds); }
timer.stop;
I will have 2 questions:
-
this create an infinite loop, not good I know,
how to stop an infinite loop on Haxe. -
It is not the equivalent of Time.sleep() from Python.
what wuold just sleep the script for a determined time?
Thanks.