public final class TimeUtils extends 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(String msg,
TimeUtils.Task task)
Helper method that can be used to compute the time.
|
static String |
formatTimeInLocalOrSpecifiedTimeZone(long timeInMilliSeconds,
String format) |
public static String formatTimeInLocalOrSpecifiedTimeZone(long timeInMilliSeconds, String format)
timeInMilliSeconds - - The time in millisecondsformat - - A format that can be used by SimpleDateFormatRuntimeBehavior.getTimeZone()public static void computeAndShowTime(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.Copyright © 2025. All rights reserved.