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 Duration
begin()
Start the timer.Duration
end()
Finish the timer.long
getBegin()
Get the begin of the interval.long
getDuration()
Get the duration of the interval.long
getEnd()
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
-
-