org.specs2

time

package time

Visibility
  1. Public
  2. All

Type Members

  1. class Duration extends AnyRef

    Time duration.

    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

  2. trait DurationConversions extends AnyRef

  3. trait HmsTimer[T <: HmsTimer[T]] extends AnyRef

    This trait provides Timer functionalities based on the Java Calendar milliseconds

  4. trait NoDurationConversions extends DurationConversions

  5. trait NoTimeConversions extends TimeConversions

    This trait can be used to deactivate the time conversions (to avoid conflicts with Akka's conversions for example

  6. class SimpleTimer extends HmsTimer[SimpleTimer]

  7. class Time extends Duration

  8. trait TimeConversions extends DurationConversions

    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)

Value Members

  1. object Duration

  2. object NoTimeConversions extends NoTimeConversions

  3. object SimpleTimer

  4. object Time

    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.

  5. object TimeConversions extends TimeConversions

Ungrouped