|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object
java.lang.Enum<Chronometer.Precision>
oracle.javatools.util.Chronometer.Precision
public static enum Chronometer.Precision
Defines the method to be utilized by a Chronometer instance in order to obtain current time.
Enum Constant Summary | |
---|---|
Milliseconds Use System.currentTimeMillis() to obtain current time. |
|
Nanoseconds Use System.nanoTime() to obtain current time |
Method Summary | |
---|---|
static Chronometer.Precision |
valueOf(java.lang.String name) Returns the enum constant of this type with the specified name. |
static Chronometer.Precision[] |
values() Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Chronometer.Precision Milliseconds
System.currentTimeMillis()
to obtain current time.
This will usually be the cheapest method.
public static final Chronometer.Precision Nanoseconds
System.nanoTime()
to obtain current time
This method will be more precise than Milliseconds
, but it is also likely to be more expensive and more sensitive to low level OS issues, especially regarding clock syncing across multiple cores.
Method Detail |
---|
public static Chronometer.Precision[] values()
for (Chronometer.Precision c : Chronometer.Precision.values()) System.out.println(c);
public static Chronometer.Precision 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
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |