public abstract class Clock extends Object
Modifier and Type | Class and Description |
---|---|
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.
|
Constructor and Description |
---|
Clock() |
Modifier and Type | Method and Description |
---|---|
static Clock |
defaultClock()
The default clock to use.
|
abstract long |
getTick()
Returns the current time tick.
|
long |
getTime()
Returns the current time in milliseconds.
|
public abstract long getTick()
public long getTime()
public static Clock defaultClock()
Clock
instanceClock.UserTimeClock
Copyright © 2023 NoraUi. All rights reserved.