|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttuffy.util.Timer
public class Timer
Container of time related utilities.
Nested Class Summary | |
---|---|
static class |
Timer.RunStat
|
Field Summary | |
---|---|
static Timer.RunStat |
runStat
|
Constructor Summary | |
---|---|
Timer()
|
Method Summary | |
---|---|
static java.lang.String |
elapsed()
Returns a string of elapsed time. |
static java.lang.String |
elapsed(java.lang.String name)
Returns the elapsed time of the timer with the given name. |
static double |
elapsedMilliSeconds(java.lang.String name)
|
static double |
elapsedSeconds()
Returns the number of elapsed seconds since last clock reset. |
static double |
elapsedSeconds(java.lang.String name)
Returns the number of elapsed seconds of a given timer; -1 if the timer is unknown. |
static java.lang.String |
getDateTime()
|
static void |
printElapsed()
Prints the elapsed time since last clock reset. |
static void |
printElapsed(java.lang.String name)
Prints the elapsed time of the timer with the given name. |
static void |
resetClock()
Resets the global starting point of the Timer. |
static void |
start(java.lang.String name)
Kicks off a timer with the given name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static Timer.RunStat runStat
Constructor Detail |
---|
public Timer()
Method Detail |
---|
public static java.lang.String elapsed()
public static java.lang.String elapsed(java.lang.String name)
public static double elapsedMilliSeconds(java.lang.String name)
public static double elapsedSeconds()
public static double elapsedSeconds(java.lang.String name)
name
- the name of the timerpublic static java.lang.String getDateTime()
public static void printElapsed()
public static void printElapsed(java.lang.String name)
public static void resetClock()
public static void start(java.lang.String name)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |