info.ephyra.util
Class Clock

java.lang.Object
  extended by info.ephyra.util.Clock

public class Clock
extends java.lang.Object

Implementation of a stop watch.

Version:
2004-11-04
Author:
Nico Schlaefer

Field Summary
private static boolean isRunning
          Is the clock running?
private static long startTime
          Starting time.
private static long stopTime
          Stop time.
 
Constructor Summary
Clock()
           
 
Method Summary
static long getTime()
          Returns the time that has passed.
static void start()
          Starts the clock.
static void stop()
          Stops the clock.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isRunning

private static boolean isRunning
Is the clock running?


startTime

private static long startTime
Starting time.


stopTime

private static long stopTime
Stop time.

Constructor Detail

Clock

public Clock()
Method Detail

start

public static void start()
Starts the clock.


stop

public static void stop()
Stops the clock.


getTime

public static long getTime()
Returns the time that has passed.

Returns:
time difference