public class Timer
extends java.lang.Object
Constructor and Description |
---|
Timer() |
Modifier and Type | Method and Description |
---|---|
long |
nanos() |
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