瀏覽代碼

disable for neko.

Nicolas Cannasse 18 年之前
父節點
當前提交
fae7c56316
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      std/haxe/Timer.hx

+ 4 - 2
std/haxe/Timer.hx

@@ -33,6 +33,8 @@ class Timer {
 	private var timerId : Int;
 	#end
 
+	#if !neko
+
 	public function new( time : Int ){
 		#if flash9
 			var me = this;
@@ -44,8 +46,6 @@ class Timer {
 			id = arr.length;
 			arr[id] = this;
 			timerId = untyped window.setInterval("haxe.Timer.arr["+id+"].run();",time);
-		#else neko
-			throw "Not implemented";
 		#end
 	}
 
@@ -92,6 +92,8 @@ class Timer {
 		},if( time == null ) 0 else time)();
 	}
 
+	#end
+
 	public static function stamp() : Float {
 		#if flash
 		return flash.Lib.getTimer() / 1000;