*** empty log message ***
This commit is contained in:
parent
668e59f52d
commit
5c72fa9cb2
|
@ -82,14 +82,7 @@ public class Timer {
|
||||||
*/
|
*/
|
||||||
public float getTime() {
|
public float getTime() {
|
||||||
if (!paused) {
|
if (!paused) {
|
||||||
if (currentTime > startTime) {
|
|
||||||
lastTime = 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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return (float) ((double) lastTime / (double) resolution);
|
return (float) ((double) lastTime / (double) resolution);
|
||||||
|
|
Loading…
Reference in New Issue