public static enum StopWatch.TimeUnit extends java.lang.Enum<StopWatch.TimeUnit>
Modifier and Type | Method and Description |
---|---|
long |
convertFromNanos(long nanos) |
long |
convertToNanos(long units) |
static StopWatch.TimeUnit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StopWatch.TimeUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StopWatch.TimeUnit SECONDS
public static final StopWatch.TimeUnit MILLIS
public static final StopWatch.TimeUnit MICROS
public static final StopWatch.TimeUnit NANOS
public static StopWatch.TimeUnit[] values()
for (StopWatch.TimeUnit c : StopWatch.TimeUnit.values()) System.out.println(c);
public static StopWatch.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 nullpublic long convertFromNanos(long nanos)
public long convertToNanos(long units)