public static String getHeader() { return "\n" + StringUtils.padRight("Description", longestTitle + 1) + StringUtils.padLeft("msec", 8); }
public static String getHeader() { return "\n" + StringUtils.padRight("Description", longestTitle + 1) + StringUtils.padLeft("msec", 8); } String title;
public static String getHeader() { return "\n" + StringUtils.padRight("Description", longestTitle + 1) + StringUtils.padLeft("msec", 8); }
@Override public String toString() { long finish = hasEnded() ? endTime : System.currentTimeMillis(); String totalTime = "" + (finish - startTime); if (totalTime.equals("0")) { totalTime = "< 1"; } String desc = StringUtils.padRight(title, longestTitle + 1); String time = StringUtils.padLeft(totalTime, 8); if (!hasEnded()) { time += " ** STILL RUNNING **"; } return desc + time; }
public String toString() { long finish = hasEnded() ? endTime : System.currentTimeMillis(); String totalTime = "" + (finish - startTime); if (totalTime.equals("0")) { totalTime = "< 1"; } String desc = StringUtils.padRight(title, longestTitle + 1); String time = StringUtils.padLeft(totalTime, 8); if (!hasEnded()) { time += " ** STILL RUNNING **"; } return desc + time; }
@Override public String toString() { long finish = hasEnded() ? endTime : System.currentTimeMillis(); String totalTime = "" + (finish - startTime); if (totalTime.equals("0")) { totalTime = "< 1"; } String desc = StringUtils.padRight(title, longestTitle + 1); String time = StringUtils.padLeft(totalTime, 8); if (!hasEnded()) { time += " ** STILL RUNNING **"; } return desc + time; }