Package

org.specs2

time

Permalink

package time

Visibility
  1. Public
  2. All

Type Members

  1. class Duration extends AnyRef

    Permalink

    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

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

    Permalink

    This trait provides Timer functionalities based on the Java Calendar milliseconds

  4. trait NoDurationConversions extends DurationConversions

    Permalink
  5. trait NoTimeConversions extends TimeConversions

    Permalink

    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]

    Permalink
  7. class Time extends Duration

    Permalink
  8. trait TimeConversions extends DurationConversions

    Permalink

    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

    Permalink
  2. object NoTimeConversions extends NoTimeConversions

    Permalink
  3. object SimpleTimer

    Permalink
  4. object Time

    Permalink

    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

    Permalink

Ungrouped