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

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

stime

public static double stime()
Return the elapsed time measured in seconds.
Returns:
double, the time.
Since:
Opale-Tools 0.13

mtime

public static double mtime()
Return the elapsed time measured in minutes.
Returns:
double, the time.
Since:
Opale-Tools 0.13

htime

public static double htime()
Return the elapsed time measured in hours.
Returns:
double, the time.
Since:
Opale-Tools 0.13

main

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