public static class RecoveryState.Timer extends java.lang.Object implements Streamable
Modifier and Type | Field and Description |
---|---|
protected long |
startNanoTime |
protected long |
startTime |
protected long |
stopTime |
protected long |
time |
Constructor and Description |
---|
Timer() |
Modifier and Type | Method and Description |
---|---|
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
void |
reset() |
void |
start() |
long |
startTime()
Returns start time in millis
|
void |
stop() |
long |
stopTime()
Returns stop time in millis
|
long |
time()
Returns elapsed time in millis, or 0 if timer was not started
|
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
protected long startTime
protected long startNanoTime
protected long time
protected long stopTime
public void start()
public long startTime()
public long time()
public long stopTime()
public void stop()
public void reset()
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
java.io.IOException