public class DurationMeasure extends SimplePullMeasure<Long>
start() at the beginning of
the running and stop() at the end. Additional calls to these two
methods can also be made during the running to exclude specific parts from
the counting. At any time during (and after) the running, the get()
method can be used to know how much time have been spent so far. If the
algorithm is rerun, it will restart and the additional time will sum up to
the time already spent before, but it can be avoided by resetting the measure
with reset().| Constructor and Description |
|---|
DurationMeasure() |
| Modifier and Type | Method and Description |
|---|---|
Long |
get() |
void |
reset()
Reset the total time to zero.
|
void |
start()
Start a round.
|
void |
stop()
Stop a round.
|
getDescription, getName, setDescription, setName, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDescription, getNamepublic void start()
public void stop()
public Long get()
public void reset()
Copyright © 2017. All rights reserved.