X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTTimer.java;fp=src%2Fjexer%2FTTimer.java;h=442a55cc6ffbc7173ce8a29f58e7e5e7d7412e9f;hb=92554d64c21c6a477fd23a06ca3a64a542b622a3;hp=0e711b967ec50ab6c1d4ac3fe612aa6573a3a7aa;hpb=a83fea2bae838f4b9bbf59ce3832e0e67be41378;p=fanfix.git diff --git a/src/jexer/TTimer.java b/src/jexer/TTimer.java index 0e711b9..442a55c 100644 --- a/src/jexer/TTimer.java +++ b/src/jexer/TTimer.java @@ -81,15 +81,6 @@ public final class TTimer { } } - /** - * Get the number of milliseconds between now and the next tick time. - * - * @return number of millis - */ - public long getMillis() { - return nextTick.getTime() - (new Date()).getTime(); - } - /** * Package private constructor. * @@ -103,7 +94,8 @@ public final class TTimer { this.duration = duration; this.action = action; - nextTick = new Date((new Date()).getTime() + duration); + Date now = new Date(); + nextTick = new Date(now.getTime() + duration); } }