timers can have fractions of seconds as timeout

This commit is contained in:
Djeeberjr 2022-03-01 12:47:10 +01:00
parent fb98910116
commit f9243dbcd2

View File

@ -15,7 +15,7 @@ extern class OS {
public static function unloadAPI(path:String):Void; public static function unloadAPI(path:String):Void;
public static function queueEvent(type:String, data:Rest<Dynamic>):Void; public static function queueEvent(type:String, data:Rest<Dynamic>):Void;
public static function clock():Float; 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 cancelTimer(id:Int):Void;
public static function time():Float; public static function time():Float;
public static function sleep(timeout:Float):Void; public static function sleep(timeout:Float):Void;