|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.reprap.utilities.Timer
public class Timer
Field Summary | |
---|---|
private long |
delta
Time since last call |
private long |
t
Time now |
private long |
t0
Time at the start |
private java.text.DecimalFormat |
threeDec
for 3 d.p. |
private static Timer |
tim
Static single instance to hold all times |
Constructor Summary | |
---|---|
private |
Timer()
Constructor just needs to create a single instance for initialiseIfNeedBe(String e) |
Method Summary | |
---|---|
private static java.lang.String |
d3dp(double v)
Get a double as a 3 d.p. |
static double |
elapsed()
Get the time from the start in seconds |
private static void |
initialiseIfNeedBe()
Check if we've been initialised and initialise if needed |
private static void |
newTime()
What o'clock have you? |
static java.lang.String |
stamp()
Generate a timestamp |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private long t0
private long t
private long delta
private java.text.DecimalFormat threeDec
private static Timer tim
Constructor Detail |
---|
private Timer()
Method Detail |
---|
private static void newTime()
private static void initialiseIfNeedBe()
e
- private static java.lang.String d3dp(double v)
v
-
public static java.lang.String stamp()
public static double elapsed()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |