An implementation of the Clock
service backed by a java.time.Clock
.
Get the current time, represented in the current timezone.
Returns the current time, relative to the Unix epoch.
Constructs a java.time.Clock
backed by the Clock
service.
Returns the system nano time, which is not relative to any date.
Returns the scheduler used for scheduling effects.
Sleeps for the specified duration.
Sleeps for the specified duration. This is always asynchronous.