|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectutils.StopWatch
public class StopWatch
Constructor Summary | |
---|---|
StopWatch()
|
Method Summary | |
---|---|
static long |
benchMark(java.lang.Runnable r,
int n)
Run the runnable r n
times and return the average time in ms. |
void |
clear()
Zero the elapsedTime |
double |
getElapsedTime()
This is the time between a mark and a record. |
long |
getTimeInMs()
|
static void |
main(java.lang.String[] args)
|
void |
print(double N,
java.lang.String message)
|
void |
print(java.lang.String message)
|
void |
report()
Report the elapsed time between the mark and the record invocations to the System.out . |
void |
report(java.io.PrintStream ps)
|
void |
start()
record the current time in milliseconds affineTransform the start point. |
void |
stop()
Compute the difference between the mark'd time and the current time, in milliseconds. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StopWatch()
Method Detail |
---|
public void start()
public void clear()
public void stop()
public double getElapsedTime()
public long getTimeInMs()
public static long benchMark(java.lang.Runnable r, int n)
r
n
times and return the average time in ms.
r
- n
-
public void report(java.io.PrintStream ps)
public static void main(java.lang.String[] args)
public void report()
System.out
.
public void print(double N, java.lang.String message)
public void print(java.lang.String message)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |