org.tango.server
Class Chronometer

java.lang.Object
  extended by org.tango.server.Chronometer

public final class Chronometer
extends java.lang.Object

Calculate elapsed time

Author:
ABEILLE

Constructor Summary
Chronometer()
           
 
Method Summary
 boolean isOver()
          Check if the started duration is over
 void start(long duration)
          Start the chronometer
 void stop()
          stop the chronometer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Chronometer

public Chronometer()
Method Detail

start

public void start(long duration)
Start the chronometer

Parameters:
duration - the duration in milliseconds

stop

public void stop()
stop the chronometer


isOver

public boolean isOver()
Check if the started duration is over

Returns:
true if over


Copyright © 2012-2015. All Rights Reserved.