public class Time
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DAY
a day in seconds
|
static int |
HOUR
an hour in seconds
|
static int |
MINUTE
a minute in seconds
|
| Constructor and Description |
|---|
Time() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
prettyTimeSpan(double nanoTime)
Converts the given nano time to an human readable string.
|
static java.lang.String |
prettyTimeSpan(double nanoTime,
boolean showSeconds)
Converts the given nano time to an human readable string.
|
public static final int DAY
public static final int HOUR
public static final int MINUTE
public static java.lang.String prettyTimeSpan(double nanoTime)
nanoTime - The time to convertpublic static java.lang.String prettyTimeSpan(double nanoTime,
boolean showSeconds)
nanoTime - The time to convertshowSeconds - if set to true, round to seconds. if set to false, round to minutes