public class RecurringTaskStatistics extends Object
RecurringTask
being managed by a RecurringTaskScheduler
.Modifier and Type | Method and Description |
---|---|
Duration |
getAverageExecutionTime()
Gets the average execution time of the task.
|
boolean |
getIsExecuting()
Gets a value indicating whether the task is currently executing.
|
long |
getLastFinish()
Gets the number of ticks in the
Stopwatch timer mechanism
at the time the task last finished execution. |
long |
getNextStart()
Gets the number of ticks in the
Stopwatch timer mechanism
at the time the task will next be excecuted. |
Duration |
getPeriod()
Gets the period at which the task is executed.
|
RecurringTask |
getTask()
Gets the recurring task.
|
long |
getTimesExecuted()
Gets the number of times the task has been executed.
|
long |
getTotalTicks()
Gets the total number of ticks in the
Stopwatch timer mechanism
that have elapsed while this task was executing. |
public final RecurringTask getTask()
public final Duration getPeriod()
public final boolean getIsExecuting()
public final long getLastFinish()
Stopwatch
timer mechanism
at the time the task last finished execution.public final long getNextStart()
Stopwatch
timer mechanism
at the time the task will next be excecuted.public final long getTotalTicks()
Stopwatch
timer mechanism
that have elapsed while this task was executing.public final long getTimesExecuted()
public final Duration getAverageExecutionTime()