瀏覽代碼

[lua] fix microsecond haxe.Time precision

Justin Donaldson 5 年之前
父節點
當前提交
1cdc7a29fe
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);
 	}
 }