Browse Source

[java] use float division for Sys.time (closes #4461)

Some time in the far future, this will cause issues, since double can't contain full long range, but let's leave this for future generations :-P
Dan Korostelev 9 years ago
parent
commit
041df79697
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/java/_std/Sys.hx

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

@@ -144,7 +144,7 @@ using haxe.Int64;
 
 	public static function time() : Float
 	{
-		return cast(System.currentTimeMillis().div(Int64.ofInt(1000)), Float);
+		return cast(System.currentTimeMillis(), Float) / 1000;
 	}
 
 	public static function cpuTime() : Float