public abstract class CpuClock extends Object
| Modifier and Type | Field and Description |
|---|---|
static CpuClock |
CPU_CLOCK |
static CpuClock |
NOT_AVAILABLE |
| Constructor and Description |
|---|
CpuClock() |
| Modifier and Type | Method and Description |
|---|---|
abstract long |
cpuTimeNanos(long threadId)
Returns the current CPU time used by the thread, in nanoseconds.
|
long |
cpuTimeNanos(Thread thread)
Returns the current CPU time used by the thread, in nanoseconds.
|
public static final CpuClock CPU_CLOCK
public static final CpuClock NOT_AVAILABLE
public final long cpuTimeNanos(Thread thread)
thread - the thread to get the used CPU time for.public abstract long cpuTimeNanos(long threadId)
threadId - the id of the thread to get the used CPU time for.-1 if getting the CPU time is not
supported.Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.