weka.classifiers.rules.car.utils
Class Stopwatch

java.lang.Object
  extended by weka.classifiers.rules.car.utils.Stopwatch
All Implemented Interfaces:
java.io.Serializable

public class Stopwatch
extends java.lang.Object
implements java.io.Serializable

This class provides a simple method to measure runtime behaviour.

Version:
$Revision: 8108 $
Author:
FracPete (fracpete@cs.waikato.ac.nz)
See Also:
Serialized Form

Constructor Summary
Stopwatch()
          Constructor initializes the object
 
Method Summary
 long getMilliSeconds()
          returns the milliseconds
 double getSeconds()
          returns the seconds
 void start()
          starts the "clock"
 void stop()
          stops the "clock"
 java.lang.String toString()
          returns the time in Seconds
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Stopwatch

public Stopwatch()
Constructor initializes the object

Method Detail

start

public void start()
starts the "clock"


stop

public void stop()
stops the "clock"


getSeconds

public double getSeconds()
returns the seconds

Returns:
the stopped time in seconds

getMilliSeconds

public long getMilliSeconds()
returns the milliseconds

Returns:
the stopped time in milliseconds

toString

public java.lang.String toString()
returns the time in Seconds

Overrides:
toString in class java.lang.Object
Returns:
time in seconds