systemic.sif.sbpframework.common.utils
Class Timer

java.lang.Object
  extended by systemic.sif.sbpframework.common.utils.Timer

public class Timer
extends java.lang.Object


Constructor Summary
Timer()
           
 
Method Summary
 void finish()
          Stops the timer
 long getFinishTime()
          Returns the number of milliseconds since January 1, 1970, 00:00:00 GMT when finish() was called last.
 long getStartTime()
          Returns the number of milliseconds since January 1, 1970, 00:00:00 GMT when start() was called last.
 void start()
          Starts the timer
 long timeTaken()
          Returns the number of milliseconds passed between the last call of start() and finish().
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Timer

public Timer()
Method Detail

start

public void start()
Starts the timer


finish

public void finish()
Stops the timer


getStartTime

public long getStartTime()
Returns the number of milliseconds since January 1, 1970, 00:00:00 GMT when start() was called last.

Returns:
see description

getFinishTime

public long getFinishTime()
Returns the number of milliseconds since January 1, 1970, 00:00:00 GMT when finish() was called last.

Returns:
see description

timeTaken

public long timeTaken()
Returns the number of milliseconds passed between the last call of start() and finish().

Returns:
See description.