Package elki.logging.statistics
Interface Duration
-
- All Superinterfaces:
Statistic
- All Known Implementing Classes:
MillisTimeDuration,NanoDuration
public interface Duration extends Statistic
Class that tracks the duration of a task. TODO: add support for different time units?- Since:
- 0.6.0
- Author:
- Erich Schubert
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Durationbegin()Start the timer.Durationend()Finish the timer.longgetBegin()Get the begin of the interval.longgetDuration()Get the duration of the interval.longgetEnd()Get the end of the interval.-
Methods inherited from interface elki.logging.statistics.Statistic
formatValue, getKey
-
-
-
-
Method Detail
-
begin
Duration begin()
Start the timer.
-
end
Duration end()
Finish the timer.
-
getBegin
long getBegin()
Get the begin of the interval.- Returns:
- Begin
-
getEnd
long getEnd()
Get the end of the interval.- Returns:
- End
-
getDuration
long getDuration()
Get the duration of the interval.- Returns:
- Duration
-
-