|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimple.time.TimerFactory
public final class TimerFactory
Creates various timers.
Created: Nov 9, 2010
| Nested Class Summary | |
|---|---|
static class |
TimerFactory.Algorithm
|
| Constructor Summary | |
|---|---|
TimerFactory()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getTime(long milli)
Formats the time to H:m:s |
static java.lang.String |
getTimeLong(long milli)
Formats the time to "H hours, m minutes, s seconds" |
static java.lang.String |
getTimeLongPrecise(long milli)
Formats the time to "H hours, m minutes, s seconds, M milliseconds" |
static java.lang.String |
getTimePrecise(long milli)
Formats the time to H:m:s.M |
static TimeRemainingEstimator |
getTRETimer(TimerFactory.Algorithm algorithm,
int sampleSize)
Gets a timer with the specified algorithm. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimerFactory()
| Method Detail |
|---|
public static TimeRemainingEstimator getTRETimer(TimerFactory.Algorithm algorithm,
int sampleSize)
algorithm - sampleSize -
public static java.lang.String getTime(long milli)
milli -
public static java.lang.String getTimeLong(long milli)
milli -
public static java.lang.String getTimePrecise(long milli)
milli -
public static java.lang.String getTimeLongPrecise(long milli)
milli -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||