org.apache.nutch.util
Class TimingUtil
java.lang.Object
org.apache.nutch.util.TimingUtil
public class TimingUtil
- extends Object
Method Summary |
static String |
elapsedTime(long start,
long end)
Calculate the elapsed time between two times specified in milliseconds. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimingUtil
public TimingUtil()
elapsedTime
public static String elapsedTime(long start,
long end)
- Calculate the elapsed time between two times specified in milliseconds.
- Parameters:
start
- The start of the time periodend
- The end of the time period
- Returns:
- a string of the form "XhYmZs" when the elapsed time is X hours, Y minutes and Z seconds or null if start > end.
Copyright © 2011 The Apache Software Foundation