cz.cuni.amis.utils
Class StopWatch

java.lang.Object
  extended by cz.cuni.amis.utils.StopWatch

public class StopWatch
extends java.lang.Object


Constructor Summary
StopWatch()
           
 
Method Summary
 double check()
          In millis
 java.lang.String checkStr()
           
 void start()
          Watches are start()ed during construction, this will just refresh the start time.
 double stop()
          In millis
 java.lang.String stopStr()
           
 double time()
          In millis...
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StopWatch

public StopWatch()
Method Detail

start

public void start()
Watches are start()ed during construction, this will just refresh the start time.


stop

public double stop()
In millis

Returns:

check

public double check()
In millis

Returns:

time

public double time()
In millis... returns last stop()/check() time. (Use stopStr() and then obtain time with time().)

Returns:

stopStr

public java.lang.String stopStr()

checkStr

public java.lang.String checkStr()