public class Timer
extends java.lang.Object
Constructor and Description |
---|
Timer() |
Modifier and Type | Method and Description |
---|---|
long |
nanos() |
java.lang.String |
startAsShortString()
return the start time of this timer.
|
java.lang.String |
startAsString()
return the start time of this timer.
|
long |
time()
Return the difference between when the timer was created and the current time.
|
java.lang.String |
toString()
Return the difference between when the timer was created and the current time as a
string along with the time of creation in date format.
|
public long time()
public long nanos()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String startAsString()
public java.lang.String startAsShortString()