Selaa lähdekoodia

[lua] fix microsecond haxe.Time precision

Justin Donaldson 5 vuotta sitten
vanhempi
commit
1cdc7a29fe
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      std/lua/_std/Sys.hx

+ 1 - 1
std/lua/_std/Sys.hx

@@ -121,6 +121,6 @@ class Sys {
 
 	public static function time():Float {
 		var stamp = lua.lib.luv.Misc.gettimeofday();
-		return stamp.seconds + (stamp.microseconds / 100000);
+		return stamp.seconds + (stamp.microseconds / 1000000);
 	}
 }