org.apache.hadoop.examples.pi
Class Util.Timer

java.lang.Object
  extended by org.apache.hadoop.examples.pi.Util.Timer
Enclosing class:
Util

public static class Util.Timer
extends Object

Timer


Constructor Summary
Util.Timer(boolean isAccumulative)
          Timer constructor
 
Method Summary
 long tick()
          Same as tick(null).
 long tick(String s)
          Tick
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util.Timer

public Util.Timer(boolean isAccumulative)
Timer constructor

Parameters:
isAccumulative - Is accumulating the time duration?
Method Detail

tick

public long tick()
Same as tick(null).


tick

public long tick(String s)
Tick

Parameters:
s - Output message. No output if it is null.
Returns:
delta


Copyright © 2009 The Apache Software Foundation