*** empty log message ***

This commit is contained in:
Caspian Rychlik-Prince 2004-12-07 00:24:29 +00:00
parent 668e59f52d
commit 5c72fa9cb2
1 changed files with 1 additions and 8 deletions

View File

@ -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);