[TOC]

org.apache.nutch.util

Class TimingUtil


public class TimingUtil
extends Object

Constructor Summary

Constructors Constructor and Description TimingUtil()

Method Summary

Methods Modifier and Type Method and Description 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

Constructor Detail

-  

TimingUtil

public TimingUtil()

Method Detail

-  

elapsedTime

public static String elapsedTime(long start,
                 long end)

Calculate the elapsed time between two times specified in milliseconds.

  - Parameters:
  - <code>start</code> - The start of the time period
  - <code>end</code> - The end of the time period 
  - Returns:
  - a string of the form &#34;XhYmZs&#34; when the elapsed time is X hours, Y minutes and Z seconds or null if start &gt; end.      

Copyright © 2014 The Apache Software Foundation