- All Implemented Interfaces:
com.io7m.repetoir.core.RPServiceType
public final class IdServerClock
extends Object
implements com.io7m.repetoir.core.RPServiceType
A service that exposes a clock.
-
Constructor Summary
Constructors
A service that exposes a clock.
-
Method Summary
-
Constructor Details
-
IdServerClock
public IdServerClock(Clock inClock)
A service that exposes a clock.
- Parameters:
inClock
- The clock
-
Method Details
-
description
- Specified by:
description
in interface com.io7m.repetoir.core.RPServiceType
-
now
- Returns:
- The current time to the nearest second
-
nowPrecise
- Returns:
- The current time
-
-
clock
- Returns:
- The underlying clock