org.apache.pig.tools.timer
Class PerformanceTimer

java.lang.Object
  extended by org.apache.pig.tools.timer.PerformanceTimer

public class PerformanceTimer
extends Object


Method Summary
 void print(PrintStream out)
          Dump the total time, total number of starts and stops, and average run time of the timer to an output stream.
 void start()
          Start the timer.
 void stop()
          Stop the timer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

start

public void start()
Start the timer.


stop

public void stop()
Stop the timer.


print

public void print(PrintStream out)
Dump the total time, total number of starts and stops, and average run time of the timer to an output stream.

Parameters:
out - output stream to write info to.


Copyright © 2007-2012 The Apache Software Foundation