浏览代码

Timer implementation for cpp

Hugh Sanderson 16 年之前
父节点
当前提交
c4b4a92965
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      std/haxe/Timer.hx

+ 2 - 0
std/haxe/Timer.hx

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