From 5c72fa9cb2da734dcfe8664548a5af01d1285717 Mon Sep 17 00:00:00 2001 From: Caspian Rychlik-Prince Date: Tue, 7 Dec 2004 00:24:29 +0000 Subject: [PATCH] *** empty log message *** --- src/java/org/lwjgl/util/Timer.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/java/org/lwjgl/util/Timer.java b/src/java/org/lwjgl/util/Timer.java index 32705875..fa5a1e63 100644 --- a/src/java/org/lwjgl/util/Timer.java +++ b/src/java/org/lwjgl/util/Timer.java @@ -82,14 +82,7 @@ public class Timer { */ public float getTime() { if (!paused) { - if (currentTime > startTime) { - lastTime = currentTime - startTime; - } else { - // The timer seems to have wrapped round. We don't know - // when it wrapped round, so the only thing we can reasonably - // do is reset the starttime and have a "glitch" - startTime = currentTime; - } + lastTime = currentTime - startTime; } return (float) ((double) lastTime / (double) resolution);