| Modifier and Type | Method and Description |
|---|---|
static Time |
addTimes(Time time1,
Time time2)
Note that:
|
static Time |
adjustTimeUnit(java.math.BigInteger runtime,
TimeUnit timeUnit)
This method takes a time (in value and unit) and adjusts the TimeUnit
so that the value is as small as possible, without losing precision
e.g.
|
static Time |
adjustTimeUnit(double runtime,
TimeUnit timeUnit)
This methods adjusts the value to the first storable format
if (value < 1) then scale by 1000 and check again
|
static Long |
compareTime(Time t1,
Time t2)
compares two Times
|
static Time |
convertToTimeUnit(Time time,
TimeUnit unit)
Converts a Time object to the given TimeUnit.
|
static double |
divideTimes(Time time1,
Time time2)
Divides time1 by time 2
|
static List<TimeUnit> |
getTimeUnitList()
get a list with all possible Units
|
static Time |
multiplyTime(Time time,
double value)
Multiplies a Time object by a factor of type long.
|
static Time |
subtractTimes(Time time1,
Time time2) |
static String |
timeToString(Time time)
Prints Time object nicely.
|