org.jzy3d.maths
Class TicToc

java.lang.Object
  extended by org.jzy3d.maths.TicToc

public class TicToc
extends Object

TicToc allows measuring elapsed time between a call to tic() and a call to toc(). Retrieving elapsed time is done by calling either: elapsedNanosecond(), elapsedMilisecond() or elapsedSecond().

Author:
Martin Pernollet

Field Summary
protected  long start
           
protected  long stop
           
 
Constructor Summary
TicToc()
           
 
Method Summary
 double elapsedMicrosecond()
           
 double elapsedMilisecond()
           
 long elapsedNanosecond()
           
 double elapsedSecond()
           
 void tic()
           
 double toc()
          return time in second
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

start

protected long start

stop

protected long stop
Constructor Detail

TicToc

public TicToc()
Method Detail

tic

public void tic()

toc

public double toc()
return time in second


elapsedNanosecond

public long elapsedNanosecond()

elapsedMicrosecond

public double elapsedMicrosecond()

elapsedMilisecond

public double elapsedMilisecond()

elapsedSecond

public double elapsedSecond()