package clock
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- clock
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
val
currentDateTime: ZIO[Clock, DateTimeException, OffsetDateTime]
Get the current time, represented in the current timezone.
-
def
currentTime(unit: ⇒ TimeUnit): ZIO[Clock, Nothing, Long]
Returns the current time, relative to the Unix epoch.
-
val
nanoTime: ZIO[Clock, Nothing, Long]
Returns the system nano time, which is not relative to any date.
-
def
sleep(duration: ⇒ Duration): ZIO[Clock, Nothing, Unit]
Sleeps for the specified duration.
Sleeps for the specified duration. This is always asynchronous.
- object Clock extends PlatformSpecific with Serializable