Browse Source

added reset

ncannasse 8 years ago
parent
commit
00832fd14c
1 changed files with 5 additions and 0 deletions
  1. 5 0
      hxd/Timer.hx

+ 5 - 0
hxd/Timer.hx

@@ -31,4 +31,9 @@ class Timer {
 		oldTime = haxe.Timer.stamp();
 	}
 
+	public static function reset() {
+		oldTime = haxe.Timer.stamp();
+		calc_tmod = 1.;
+	}
+
 }