doc improvement.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@5992 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2007-11-21 22:18:05 +00:00
1 parent 0df5775c3d
commit cd52c71a3e
1 file changed
+6
+6
View File
@@ -357,6 +357,12 @@ public class Util {
return toHexString(bytes,0,bytes.length);
}
/**
* Returns a human readable text of the time duration.
*
* @param duration
* number of milliseconds.
*/
public static String getTimeSpanString(long duration) {
duration /= 1000;
if(duration<60)