public static final class TimeLimitingCollector.TimerThread
extends
stopTimer()
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_RESOLUTION |
static |
THREAD_NAME |
Constructor and Description |
---|
TimerThread(Counter counter) |
TimerThread(long resolution,
Counter counter) |
Modifier and Type | Method and Description |
---|---|
long |
getMilliseconds()
Get the timer value in milliseconds.
|
long |
getResolution()
Return the timer resolution.
|
void |
run() |
void |
setResolution(long resolution)
Set the timer resolution.
|
void |
stopTimer()
Stops the timer thread
|
public static final THREAD_NAME
public static final int DEFAULT_RESOLUTION
public TimerThread(long resolution, Counter counter)
public TimerThread(Counter counter)
public void run()
in interface
in class
public long getMilliseconds()
public void stopTimer()
public long getResolution()
setResolution(long)
public void setResolution(long resolution)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.