| Enum Constant and Description |
|---|
EVENTS
The events.
|
MICROSECONDS
The microseconds.
|
MILLISECONDS
The milliseconds.
|
NANOSECONDS
The nanoseconds.
|
SAMPLES
The samples.
|
SECONDS
The seconds.
|
TURNS
The turns.
|
| Modifier and Type | Field and Description |
|---|---|
(package private) static double |
C0
The Constant C0.
|
(package private) static double |
C1
The Constant C1.
|
(package private) static double |
C2
The Constant C2.
|
(package private) static double |
C3
The Constant C3.
|
(package private) static double |
MAX
The Constant MAX.
|
| Modifier and Type | Method and Description |
|---|---|
double |
convert(double sourceDuration,
TimeUnit sourceUnit)
Convert.
|
double |
toMicros(double duration)
To micros.
|
double |
toMillis(double duration)
To millis.
|
double |
toNanos(double duration)
To nanos.
|
double |
toSeconds(double duration)
To seconds.
|
static TimeUnit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TimeUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
(package private) static double |
x(double d,
double m,
double over)
Scale d by m, checking for overflow.
|
public static final TimeUnit NANOSECONDS
public static final TimeUnit MICROSECONDS
public static final TimeUnit MILLISECONDS
public static final TimeUnit SECONDS
public static final TimeUnit SAMPLES
public static final TimeUnit EVENTS
public static final TimeUnit TURNS
static final double C0
static final double C1
static final double C2
static final double C3
static final double MAX
public static TimeUnit[] values()
for (TimeUnit c : TimeUnit.values()) System.out.println(c);
public static TimeUnit valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namejava.lang.NullPointerException - if the argument is nullstatic double x(double d,
double m,
double over)
d - the dm - the mover - the overpublic double convert(double sourceDuration,
TimeUnit sourceUnit)
sourceDuration - the source durationsourceUnit - the source unitpublic double toNanos(double duration)
duration - the durationpublic double toMicros(double duration)
duration - the durationpublic double toMillis(double duration)
duration - the durationpublic double toSeconds(double duration)
duration - the duration