randoop.util
Class Timer

Object
  extended by Timer

public class Timer
extends Object

A simple timer implementation. The timer has two states: running and stopped. The timer can be started and stopped multiple times. A newly-constructed timer is in a stopped state. Time is measured in milliseconds, using System.currentTimeMillis().


Constructor Summary
Constructor and Description
Timer()
          Creates a timer.
 
Method Summary
Modifier and Type Method and Description
 long getTimeElapsedMillis()
          The total testtime elapsed.
 boolean isRunning()
          The state of the timer.
 void startTiming()
          Start counting testtime.
 void stopTiming()
          Stop counting testtime.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Timer

public Timer()
Creates a timer. Timer starts in stopped state.

Method Detail

isRunning

public boolean isRunning()
The state of the timer. True means it's running, false means it's stopped.


startTiming

public void startTiming()
Start counting testtime.


stopTiming

public void stopTiming()
Stop counting testtime.


getTimeElapsedMillis

public long getTimeElapsedMillis()
The total testtime elapsed.