YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.multiroom.engine.MicroClock.Monotonic Class Reference

The clock on a source of nanoseconds. More...

Inheritance diagram for de.yaacc.multiroom.engine.MicroClock.Monotonic:
Inheritance graph
Collaboration diagram for de.yaacc.multiroom.engine.MicroClock.Monotonic:
Collaboration graph

Public Member Functions

long nowMicros ()
 
- Public Member Functions inherited from de.yaacc.multiroom.engine.MicroClock

Additional Inherited Members

- Static Public Member Functions inherited from de.yaacc.multiroom.engine.MicroClock
static MicroClock monotonic ()
 The real clock: System.nanoTime() counted from the first use of this class, so the seconds of a timestamp always fit into the 32 bits of the protocol (a raw nanoTime has an arbitrary origin).
 
static MicroClock fromNanoSource (java.util.function.LongSupplier nanos)
 A clock on any source of nanoseconds that never goes back (the source of a test, or Android's SystemClock.elapsedRealtimeNanos(), which keeps counting while the device sleeps).
 

Detailed Description

The clock on a source of nanoseconds.

Member Function Documentation

◆ nowMicros()

long de.yaacc.multiroom.engine.MicroClock.Monotonic.nowMicros ( )

The documentation for this class was generated from the following file: