diff --git a/src/kernel/Timer.hx b/src/kernel/Timer.hx index 8cd4798..9af4d1a 100644 --- a/src/kernel/Timer.hx +++ b/src/kernel/Timer.hx @@ -15,7 +15,7 @@ class Timer { /** Create new timer with timeout in seconds. **/ - public function new(timeout:Int, callback:Callback) { + public function new(timeout:Float, callback:Callback) { timerID = OS.startTimer(timeout); this.callback = callback;