git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
checkstyle sweep
[fanfix.git]
/
src
/
jexer
/
TTimer.java
diff --git
a/src/jexer/TTimer.java
b/src/jexer/TTimer.java
index 0e711b967ec50ab6c1d4ac3fe612aa6573a3a7aa..2e0ed4277ce742d81b7fb070787bcfb25559f8d0 100644
(file)
--- a/
src/jexer/TTimer.java
+++ b/
src/jexer/TTimer.java
@@
-1,4
+1,4
@@
-/*
*
+/*
* Jexer - Java Text User Interface
*
* License: LGPLv3 or later
* 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.
*
/**
* Package private constructor.
*
@@
-103,7
+94,8
@@
public final class TTimer {
this.duration = duration;
this.action = action;
this.duration = duration;
this.action = action;
- nextTick = new Date((new Date()).getTime() + duration);
+ Date now = new Date();
+ nextTick = new Date(now.getTime() + duration);
}
}
}
}