public abstract class Clock extends Object
Timer to track timing.| 限定符和类型 | 类和说明 |
|---|---|
static class |
Clock.CpuTimeClock
A clock implementation which returns the current thread's CPU time.
|
static class |
Clock.UserTimeClock
A clock implementation which returns the current time in epoch nanoseconds.
|
| 构造器和说明 |
|---|
Clock() |
public abstract long getTick()
public long getTime()
public static Clock defaultClock()
Clock instanceClock.UserTimeClockCopyright © 2020. All rights reserved.