2
0
Nicolas Cannasse 19 жил өмнө
parent
commit
a92ee20675
1 өөрчлөгдсөн 11 нэмэгдсэн , 0 устгасан
  1. 11 0
      std/haxe/Timer.hx

+ 11 - 0
std/haxe/Timer.hx

@@ -78,4 +78,15 @@ class Timer {
 		};
 	}
 
+	public static function stamp() : Float {
+		#if flash
+		return flash.Lib.getTimer() / 1000;
+		#else neko
+		return neko.Sys.time();
+		#else js
+		return Date.now().getTime() / 1000;
+		#else error
+		#end
+	}
+
 }