| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private final int | |
| private final String | |
| private static long | |
| private static long | |
| private static long | |
| private static final long | |
| private ThreadLocal | |
| private Timer. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(final Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public void | formatTo(final StringBuilder
the StringBuilder to write into buffer)Implements org. Writes a text representation of this object into the specified |
| public long | |
| public long | |
| public String | |
| public Timer. | Returns: the string representing the last operation performed.Returns the name of the last operation performed on this timer (Start, Stop, Pause or Resume). |
| public int | |
| public synchronized void | |
| public synchronized void | |
| public synchronized void | |
| public synchronized void | |
| public synchronized String | |
| public String | toString()
Overrides java. Returns the String representation of the timer based upon its current state |
| elapsedTime | back to summary |
|---|---|
| private long elapsedTime | |
| iterations | back to summary |
|---|---|
| private final int iterations | |
| name | back to summary |
|---|---|
| private final String name | |
| NANO_PER_HOUR | back to summary |
|---|---|
| private static long NANO_PER_HOUR | |
| NANO_PER_MINUTE | back to summary |
|---|---|
| private static long NANO_PER_MINUTE | |
| NANO_PER_SECOND | back to summary |
|---|---|
| private static long NANO_PER_SECOND | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| startTime | back to summary |
|---|---|
| private ThreadLocal<Long> startTime | |
| status | back to summary |
|---|---|
| private Timer. | |
| Timer | back to summary |
|---|---|
| public Timer(final String name) Constructor.
| |
| Timer | back to summary |
|---|---|
| public Timer(final String name, final int iterations) Constructor.
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| formatTo | back to summary |
|---|---|
| public void formatTo(final StringBuilder buffer) Implements org. Doc from org. Writes a text representation of this object into the specified
| |
| getElapsedNanoTime | back to summary |
|---|---|
| public long getElapsedNanoTime() Access the elapsed time.
| |
| getElapsedTime | back to summary |
|---|---|
| public long getElapsedTime() Access the elapsed time.
| |
| getName | back to summary |
|---|---|
| public String getName() Accessor for the name.
| |
| getStatus | back to summary |
|---|---|
| public Timer. Returns the name of the last operation performed on this timer (Start, Stop, Pause or Resume). | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| pause | back to summary |
|---|---|
| public synchronized void pause() Pause the timer. | |
| resume | back to summary |
|---|---|
| public synchronized void resume() Resume the timer. | |
| start | back to summary |
|---|---|
| public synchronized void start() Start the timer. | |
| startOrResume | back to summary |
|---|---|
| public synchronized void startOrResume() | |
| stop | back to summary |
|---|---|
| public synchronized String stop() Stop the timer. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns the String representation of the timer based upon its current state
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final Timer. | |
| public static final Timer. | |
| public static final Timer. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Timer. | |
| public static Timer. |
| Paused | back to summary |
|---|---|
| public static final Timer. | |
| Started | back to summary |
|---|---|
| public static final Timer. | |
| Stopped | back to summary |
|---|---|
| public static final Timer. | |
| Status | back to summary |
|---|---|
| private Status() | |
| valueOf | back to summary |
|---|---|
| public static Timer. | |
| values | back to summary |
|---|---|
| public static Timer. | |