X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTTimer.java;h=2e0ed4277ce742d81b7fb070787bcfb25559f8d0;hb=8582f35a3ffb8212463076217eb89278f42331d4;hp=0e711b967ec50ab6c1d4ac3fe612aa6573a3a7aa;hpb=d502a0e90eacad7ec676b0abf4686db553b794b1;p=fanfix.git diff --git a/src/jexer/TTimer.java b/src/jexer/TTimer.java index 0e711b9..2e0ed42 100644 --- a/src/jexer/TTimer.java +++ b/src/jexer/TTimer.java @@ -1,4 +1,4 @@ -/** +/* * Jexer - Java Text User Interface * * License: LGPLv3 or later @@ -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); } }