SimpleTimerNanos
Date: 2014-06-07

gr.zeus.util

## Class SimpleTimerNanos

- java.lang.Object
- - gr.zeus.util.SimpleTimerNanos

-     public final class SimpleTimerNanos
      extends java.lang.Object

  A very simple timer for timing java method calls and other processes (JDK 5, nanos implementation).

  Since:
    1.06
  Author:
    Gregory Kotsaftis

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SimpleTimerNanos()` Constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `double` | `elapsedMillis()` Gets elapsed time in milliseconds.
    `long` | `elapsedNanos()` Gets elapsed time in nanoseconds.
    `double` | `elapsedSeconds()` Gets elapsed time in seconds.
    `void` | `reset()` Resets the timer.
    `void` | `start()` Starts timing a job.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SimpleTimerNanos

          public SimpleTimerNanos()

      Constructor.

  - ### Method Detail

    - #### reset

          public void reset()

      Resets the timer.

    - #### start

          public void start()

      Starts timing a job.

    - #### elapsedNanos

          public long elapsedNanos()

      Gets elapsed time in nanoseconds.

      Returns:
        The elapsed time in nanoseconds.

    - #### elapsedMillis

          public double elapsedMillis()

      Gets elapsed time in milliseconds.

      Returns:
        The elapsed time in milliseconds.

    - #### elapsedSeconds

          public double elapsedSeconds()

      Gets elapsed time in seconds.

      Returns:
        The elapsed time in seconds.