public enum Clock extends Enum<Clock>
BenchmarkOptions
.Enum Constant and Description |
---|
CPU_TIME
|
NANO_TIME
Invokes
System.nanoTime() |
REAL_TIME
Invokes
System.currentTimeMillis() |
USER_TIME
|
Modifier and Type | Method and Description |
---|---|
static Clock |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Clock[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Clock REAL_TIME
System.currentTimeMillis()
public static final Clock NANO_TIME
System.nanoTime()
public static final Clock CPU_TIME
public static final Clock USER_TIME
public static Clock[] values()
for (Clock c : Clock.values()) System.out.println(c);
public static Clock valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2016 Carrot Search s.c.. All rights reserved.