public abstract class AbstractTimer
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
NANOS_TO_MILLIS |
| Constructor and Description |
|---|
AbstractTimer() |
| Modifier and Type | Method and Description |
|---|---|
java.time.Duration |
getElapsed()
Gets the elapsed time.
|
long |
getElapsedMillis()
Gets the elapsed time, in milliseconds.
|
abstract long |
getElapsedNanos()
Gets the elapsed time, in nanoseconds.
|
java.lang.String |
toString() |
public static final int NANOS_TO_MILLIS
public abstract long getElapsedNanos()
public long getElapsedMillis()
public java.time.Duration getElapsed()
public java.lang.String toString()
toString in class java.lang.Object