util
Class CPUTimer

java.lang.Object
  |
  +--util.CPUTimer

public class CPUTimer
extends java.lang.Object

Timers for measuring the CPU time.


Constructor Summary
CPUTimer()
           
 
Method Summary
 long get()
          Returns the measured time.
 void reset()
          Resets the timer.
 void set(long value)
          Sets the timer.
 void start()
          Starts the timer.
 long stop()
          Stops the timer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CPUTimer

public CPUTimer()
Method Detail

get

public long get()
Returns the measured time.

Returns:
time in milliseconds

reset

public void reset()
Resets the timer.


set

public void set(long value)
Sets the timer.

Parameters:
value - value of time

start

public void start()
Starts the timer.


stop

public long stop()
Stops the timer.

Returns:
time in milliseconds