water
Class Timer

java.lang.Object
  extended by water.Timer

public class Timer
extends java.lang.Object

Simple Timer class.


Field Summary
 long _nanos
           
 long _start
           
 
Constructor Summary
Timer()
           
 
Method Summary
 long nanos()
           
 java.lang.String startAsShortString()
          return the start time of this timer.
 java.lang.String startAsString()
          return the start time of this timer.
 long time()
          Return the difference between when the timer was created and the current time.
 java.lang.String toString()
          Return the difference between when the timer was created and the current time as a string along with the time of creation in date format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_start

public final long _start

_nanos

public final long _nanos
Constructor Detail

Timer

public Timer()
Method Detail

time

public long time()
Return the difference between when the timer was created and the current time.


nanos

public long nanos()

toString

public java.lang.String toString()
Return the difference between when the timer was created and the current time as a string along with the time of creation in date format.

Overrides:
toString in class java.lang.Object

startAsString

public java.lang.String startAsString()
return the start time of this timer.


startAsShortString

public java.lang.String startAsShortString()
return the start time of this timer.