uk.co.bigbeeconsultants

# util

#### package util

Visibility

1. Public
2. All

### Type Members

1. #### final class DiagnosticTimer extends AnyRef

   Provides a simple diagnostic timer for evaluating execution times of sections of code.

   Provides a simple diagnostic timer for evaluating execution times of sections of code. The measurement precision is to the nearest microsecond.

   Simply create an instance before the code under test and observe the duration afterwards.

   This class is included here to avoid dependencies on external libraries (e.g. JodaTime) for such a simple task.

2. #### case class Duration(microseconds: Long) extends Ordered[Duration] with Product with Serializable

   Provides a simple container for time durations measured in microseconds.

   Provides a simple container for time durations measured in microseconds. Possible operations include summing durations together and calculating averages.

   This is a bit like the class of the same name in Joda Time, except that the resolution is microseconds in this case.

   microseconds

     a number representing a time duration; negative numbers are unusual but not prohibited.

### Value Members

1. #### object DiagnosticTimer

2. #### object Duration extends Serializable

### Ungrouped