Browse Source

[lua] fix microsecond haxe.Time precision

Justin Donaldson 5 năm trước cách đây
mục cha
commit
1cdc7a29fe
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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);
 	}
 }