AbstractTimeConsumer
represents a time consuming class.
It saves and provides informations about the time that the concrete class used.
The concrete implementation needs to take care of startTime
,
endTime
, getPercentage
, started
and finished
.
public function hasFinished(Void):Boolean
Returns true
if the process has finished.
If the process has not been started it returns false
.
true
if the process has finished
public function hasStarted(Void):Boolean
Returns true
if the process has started.
If the process has finished it returns false
.
true
if the process has started
public function getPercentage(Void):Number
Returns the percentage of execution
Override this implementation for a matching result.
null
, override this implementation
public function getDuration(Void):Time
Returns the time of the execution of the process.
time difference between start time and end time/current time.
public function getEstimatedTotalTime(Void):Time
Estimates the approximate time for the complete execution of the process.
estimated duration at the end of the process
public function getEstimatedRestTime(Void):Time
Estimates the approximate time until the execution finishes.
estimated time until finish of the process