public final class TimeUtils
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
TimeUtils.Task
A sample task to be executed.
|
Modifier and Type | Method and Description |
---|---|
static void |
computeAndShowTime(java.lang.String msg,
TimeUtils.Task task)
Helper method that can be used to compute the time.
|
static java.lang.String |
formatTimeInLocalOrSpecifiedTimeZone(long timeInMilliSeconds,
java.lang.String format) |
public static java.lang.String formatTimeInLocalOrSpecifiedTimeZone(long timeInMilliSeconds, java.lang.String format)
timeInMilliSeconds
- - The time in millisecondsformat
- - A format that can be used by SimpleDateFormat
RuntimeBehavior.getTimeZone()
public static void computeAndShowTime(java.lang.String msg, TimeUtils.Task task)
msg
- - A user friendly message to be shown in the logs.task
- - A TimeUtils.Task
that represents the task to be executed.