From f9243dbcd25cd7e5427d71ba3dc1c9cf136432a8 Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Tue, 1 Mar 2022 12:47:10 +0100 Subject: [PATCH] timers can have fractions of seconds as timeout --- src/cc/OS.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cc/OS.hx b/src/cc/OS.hx index 3525c81..1a55626 100644 --- a/src/cc/OS.hx +++ b/src/cc/OS.hx @@ -15,7 +15,7 @@ extern class OS { public static function unloadAPI(path:String):Void; public static function queueEvent(type:String, data:Rest):Void; public static function clock():Float; - public static function startTimer(timeout:Int):Int; + public static function startTimer(timeout:Float):Int; public static function cancelTimer(id:Int):Void; public static function time():Float; public static function sleep(timeout:Float):Void;