Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.ensembl.util
Class NamedTimer

    java.lang.Object
      org.ensembl.util.NamedTimer

public class NamedTimer
extends java.lang.Object

A class that can support multiple named timers.

Constructor Summary
`NamedTimer()`

Method Summary
`java.lang.String` | `format(long ms)` Convert time in ms to hours, minutes, seconds.
`long` | `getDuration(java.lang.String name)` Retrieve the duration of a previously-stopped timer.
`void` | `start(java.lang.String name)` Start the timer.
`long` | `stop(java.lang.String name)` Stop a timer.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### NamedTimer

    public NamedTimer()

Method Detail

### start

    public void start(java.lang.String name)

  Start the timer.

### stop

    public long stop(java.lang.String name)

  Stop a timer.

  Returns:
    The number of milliseconds since the timer was started.

### getDuration

    public long getDuration(java.lang.String name)

  Retrieve the duration of a previously-stopped timer.

### format

    public java.lang.String format(long ms)

  Convert time in ms to hours, minutes, seconds.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD