public enum Time extends Enum<Time>
For this to work, currentTimeMillis (or one of the methods that calls it) must be called more frequently than every millisecond; the EventLoop implementations in chronicle-threads do this.
| Modifier and Type | Method and Description |
|---|---|
static long |
currentTimeMillis() |
static void |
parkNanos(long nanos) |
static long |
tickTime() |
static Time |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Time[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static void |
wait(Object o,
long waitTimeMS) |
public static Time[] values()
for (Time c : Time.values()) System.out.println(c);
public static Time 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 nullpublic static long currentTimeMillis()
public static long tickTime()
public static void wait(@NotNull
Object o,
long waitTimeMS)
throws InterruptedException,
IllegalArgumentException
public static void parkNanos(long nanos)
Copyright © 2018. All rights reserved.