Patch haxe.Timer

This commit is contained in:
Joshua Granick
2015-03-25 17:50:03 -07:00
parent 4f55cf27e2
commit 92166f018e
2 changed files with 9 additions and 2 deletions

View File

@@ -243,7 +243,11 @@ class Timer {
private static function getMS ():Float {
return stamp () * 1000.0;
#if lime_legacy
return lime_time_stamp () * 1000.0;
#else
return System.getTimer ();
#end
}
@@ -298,7 +302,6 @@ class Timer {
}
#if lime_legacy
@:noCompletion private function __check (inTime:Float) {
if (inTime >= mFireAt) {
@@ -340,6 +343,7 @@ class Timer {
}
#if lime_legacy
@:noCompletion public static function __nextWake (limit:Float):Float {
var now = lime_time_stamp () * 1000.0;

View File

@@ -1,6 +1,7 @@
package lime.app;
import haxe.Timer;
import lime.graphics.Renderer;
import lime.graphics.RenderContext;
import lime.ui.Gamepad;
@@ -513,6 +514,8 @@ class Application extends Module {
public override function update (deltaTime:Int):Void {
Timer.__checkTimers ();
for (module in modules) {
module.update (deltaTime);