public class NanoDuration extends AbstractStatistic implements Duration
System.nanoTime()
Modifier and Type | Field and Description |
---|---|
(package private) long |
begin
Tracking variables.
|
(package private) long |
end
Tracking variables.
|
key
Constructor and Description |
---|
NanoDuration(java.lang.String key)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
NanoDuration |
begin()
Start the timer.
|
NanoDuration |
end()
Finish the timer.
|
java.lang.String |
formatValue()
Get a formatted version of the value, for output.
|
long |
getBegin()
Get the begin of the interval.
|
long |
getDuration()
Get the duration of the interval.
|
long |
getEnd()
Get the end of the interval.
|
getKey, toString
public NanoDuration(java.lang.String key)
key
- Keypublic NanoDuration begin()
Duration
public NanoDuration end()
Duration
public long getBegin()
Duration
public long getEnd()
Duration
public long getDuration()
Duration
getDuration
in interface Duration
public java.lang.String formatValue()
Statistic
formatValue
in interface Statistic
Copyright © 2019 ELKI Development Team. License information.