| 
 | ||||||||||
| 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 rntimes 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()This returns the elapsed time in MS | 
| 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)Reports the elapsed time in seconds. | 
|  void | reset() | 
|  void | start()record the current time in milliseconds | 
|  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 reset()
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)
ps - outputs to the printstreampublic static void main(java.lang.String[] args)
public void report()
System.out.
 Reports the elapsed time in seconds.
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 | |||||||||