public class TimeBase
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static double |
PRECISION
Reciprocal of the smallest time unit used by
round(double) . |
Constructor and Description |
---|
TimeBase() |
Modifier and Type | Method and Description |
---|---|
static int |
compare(double t0,
double t1)
|
static boolean |
equals(double t0,
double t1)
|
static void |
main(java.lang.String[] args) |
static double |
modulo(double t0,
double t1)
|
static double |
round(double t)
Rounds
t to the nearst PRECISION seconds. |
public static final double PRECISION
round(double)
.public static double round(double t)
t
to the nearst PRECISION
seconds.public static boolean equals(double t0, double t1)
public static double modulo(double t0, double t1)
PRECISION
.public static int compare(double t0, double t1)
t0
and t1
within the tolerance
specified by the reciprocal of PRECISION
. Returns an
integer which is less than, equal, or greater than 0 if
t0
is less than, equal, or greater than t1
.public static void main(java.lang.String[] args)