Browse Source

Timer implementation for cpp

Hugh Sanderson 16 years ago
parent
commit
c4b4a92965
1 changed files with 2 additions and 0 deletions
  1. 2 0
      std/haxe/Timer.hx

+ 2 - 0
std/haxe/Timer.hx

@@ -95,6 +95,8 @@ class Timer {
 			return php.Sys.time();
 			return php.Sys.time();
 		#elseif js
 		#elseif js
 			return Date.now().getTime() / 1000;
 			return Date.now().getTime() / 1000;
+		#elseif cpp
+			return untyped __time_stamp();
 		#else
 		#else
 			return 0;
 			return 0;
 		#end
 		#end