public static enum TimeUtil.Implementation extends java.lang.Enum<TimeUtil.Implementation>
Enum Constant and Description |
---|
HIGH_PERFORMANCE
Corresponds to
window.performance.now() |
HIGH_PERFORMANCE_WEBKIT
Corresponds to
window.performance.webkitNow() |
LOW_PERFORMANCE
Corresponds to
Date.now() |
Modifier and Type | Method and Description |
---|---|
static TimeUtil.Implementation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TimeUtil.Implementation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimeUtil.Implementation HIGH_PERFORMANCE
window.performance.now()
public static final TimeUtil.Implementation HIGH_PERFORMANCE_WEBKIT
window.performance.webkitNow()
public static final TimeUtil.Implementation LOW_PERFORMANCE
Date.now()
public static TimeUtil.Implementation[] values()
for (TimeUtil.Implementation c : TimeUtil.Implementation.values()) System.out.println(c);
public static TimeUtil.Implementation 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 null