A progress counter that can estimate how much time is left. More...
|EstimatingCounter (const uint n)|
|Alter the expected count. |
|Returns the number of iterations left. |
|Returns the percent completed so far. |
|Public Member Functions inherited from loos::SimpleCounter|
|void||attach (ObsT *)|
|void||detach (ObsT *)|
|virtual void||notify (void)|
|Notify observers that an update should occur. |
|virtual void||finish (void)|
|Notify observers that we've finished with our calculation. |
|virtual void||start (void)|
|Notify observers that we're starting a calculation. |
|uint||count (void) const|
|Number of iterations we've seen so far. |
|virtual double||elapsed (void)|
|Total elapsed wall-time. |
|Protected Attributes inherited from loos::SimpleCounter|
|Timer< WallTimer >||timer_|
A progress counter that can estimate how much time is left.
This class has to know the count of expected iterations so it can estimate how much time is left. It is assumed that the execution time per iteration is largely constant.