Time duration.
This trait provides Timer functionalities based on the Java Calendar milliseconds
This trait can be used to deactivate the time conversions (to avoid conflicts with Akka's conversions for example
This object provides functions to describe units of time
This object provides functions to describe units of time
hat tip to @robey (http://robey.lag.net)
Use Time.now
in your app instead of System.currentTimeMillis
, and
unit tests will be able to adjust the current time to verify timeouts
and other time-dependent behavior, without calling sleep
.
Time duration. Along with the conversions provided by the TimeConversions object. Durations can be created by adding the time unit to a number: 1.minute