gcspy.utils
Class Timer

java.lang.Object
  extended by gcspy.utils.Timer

public class Timer
extends java.lang.Object

Timer utilities

Author:
Tony Printezis

Constructor Summary
Timer()
          A timer
 
Method Summary
 long getTime()
          Get the time
 void reset()
          Reset the timer
 void start()
          Start the timer
 void stop()
          Stop the timer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Timer

public Timer()
A timer

Method Detail

reset

public void reset()
Reset the timer


start

public void start()
Start the timer


stop

public void stop()
Stop the timer


getTime

public long getTime()
Get the time

Returns:
the elapsed time