List of utility methods to do Sleep for Second
void | waitSeconds(final long waitTimeInSeconds) Wait milli seconds. waitMilliSeconds(waitTimeInSeconds * 1000); |
void | waitSeconds(int seconds) wait Seconds waitSeconds((double) seconds);
|
void | waitXSeconds(int s) wait X Seconds try { Thread.sleep(s * 1000); } catch (Exception e) { |
String | walltimeFromSeconds(long walltimeSecs) Converts seconds into a human readable walltime string with as many H's as necessary. if (walltimeSecs < 0 || walltimeSecs == 0) { return "00:00:00"; final long hours = walltimeSecs / 3600; final long hoursDiff = walltimeSecs - hours * 3600; final long minutes = hoursDiff / 60; final long seconds = walltimeSecs - hours * 3600 - minutes * 60; final StringBuffer buf = new StringBuffer(16); ... |