public interface Clock
Modifier and Type | Method and Description |
---|---|
long |
currentTimeMillis() |
long |
nanoTime() |
long |
threadUserNanoTime(long threadId) |
long currentTimeMillis()
System.currentTimeMillis()
long nanoTime()
System.nanoTime()
long threadUserNanoTime(long threadId)
ThreadMXBean.getThreadUserTime(long)