|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object spec.benchmarks.scimark.utils.Stopwatch
public class Stopwatch
Provides a stopwatch to measure elapsed time.
Stopwatch Q = new Stopwatch;Q.start(); // // code to be timed here ... // Q.stop(); System.out.println("elapsed time was: " + Q.read() + " seconds.");
Constructor Summary | |
---|---|
Stopwatch()
|
Method Summary | |
---|---|
double |
read()
Display the elapsed time (in seconds) |
void |
reset()
Return system time (in seconds) |
void |
resume()
Resume timing, after stopping. |
static double |
seconds()
Return system time (in seconds) |
void |
start()
Start (and reset) timer |
double |
stop()
Stop timer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Stopwatch()
Method Detail |
---|
public static final double seconds()
public void reset()
public void start()
public void resume()
public double stop()
public double read()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |