opale.tools
Class Chronometer

java.lang.Object
  |
  +--opale.tools.Chronometer

public class Chronometer
extends java.lang.Object

The class Chronometer permits to measure the time, with millisecond precision.

Since:
Opale-Tools 0.11
Author:
O.C.

Constructor Summary
Chronometer()
           
 
Method Summary
static void main(java.lang.String[] arg)
           
static void resume()
          Resume the timer, that is stopped by stop().
static void start()
          Start the timer.
static void stop()
          Stop the timer.
static long time()
          Return the elapsed time in milliseconds.
 
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 static void start()
Start the timer.

stop

public static void stop()
Stop the timer.

resume

public static void resume()
Resume the timer, that is stopped by stop().

time

public static long time()
Return the elapsed time in milliseconds.
Returns:
int long, the time.

main

public static void main(java.lang.String[] arg)