Anchored

class Anchored extends Clock

Clock implementation that creates an anchor between the time sources used by System.nanoTime and System.currentTimeMillis to create Instant instances that properly reflect the current system time (as is always the case with System.currentTimeMillis) but with better performance characteristics, given that the current Instant can be derived using a call to System.nanoTime, which is considerably faster.

class Clock
class Clock
class Object
trait Matchable
class Any

Value members

Concrete methods

override def getZone: ZoneId
Definition Classes
Clock
override def instant(): Instant
Definition Classes
Clock
override def nanos(): Long
Definition Classes
override def nanosSince(instant: Instant): Long
Definition Classes
override def toInstant(nanos: Long): Instant
Definition Classes
override def withZone(zone: ZoneId): Clock
Definition Classes
Clock

Inherited methods

def equals(x$0: <FromJavaObject>): Boolean
Inherited from:
Clock
def hashCode(): Int
Inherited from:
Clock
def millis(): Long
Inherited from:
Clock