fix javadoc header
[fanfix.git] / src / jexer / TTimer.java
index 0e711b967ec50ab6c1d4ac3fe612aa6573a3a7aa..2e0ed4277ce742d81b7fb070787bcfb25559f8d0 100644 (file)
@@ -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);
     }
 
 }