Home | Trees | Indices | Help |
|
---|
|
Monitors lengthy For-Loops by logging progress at 10% intervals. (Following an initial 1% interval in case loop is very time consuming). Also displayed at each marker is an estimated time until completion (ETC). Two estimates are provided, one based the overall speed of the loop, the other based on the latest speed of the loop since the last marker.
To Do: Optionally supply separation of markers.
|
|||
|
|||
|
|||
|
|||
|
|||
bool |
|
||
Inherited from |
|
|||
markers =
List of progress display markers - 1% then every 10%. |
|||
_end = 0 Total number of loops required. |
|||
_isLogged = True Progress through for-loop should be logged? |
|||
_isOnDemand = False Return progress on demand? |
|||
_lastPercent = 0.0 Percentage complete at last time marker. |
|||
_lastTime = 0.0 Time at last marker. |
|||
_marked =
Dictionary of flags denoting which markers have been passed. |
|||
_progress = 0 Current loop number. |
|||
_startTime = 0.0 Time at which for-loop began. |
|||
_threadID =
Identification string for this thread. |
|
|||
Inherited from |
|
Initialise monitor by passing it the list to be iterated over, so the total number loops can be determined. This must be called immediately before the start of the loop as timing starts on initialisation.
|
Log a progress update on demand; at end of loop-body.
|
Log a progress update on demand; at start of loop-body.
|
Log progress update when sufficient progress is made.
|
|
|
_markedDictionary of flags denoting which markers have been passed.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Sep 8 15:46:54 2014 | http://epydoc.sourceforge.net |