|
Methods
|
|
__call__ __init__ first intermediate last next setstate
|
|
|
__call__
|
__call__ ( self )
Timer tick.
Returns a string representing the CPU time used since the last tick,
thereby resetting the counter. For internal use by the class.
if showtime was set to 0 by the constructor, an empty string is returned
instead. |
|
|
__init__
|
__init__ (
self,
string=None,
state=1,
showtime=1,
)
Constructor.
parameters:
- string
first message to print
- state
1=on (will display messages) 0=off (no output)
|
|
|
first
|
first ( self, string )
Start the first timing cycle
parameter:
- string
a short string describing what the program will start
doing now.
|
|
|
intermediate
|
intermediate ( self )
Print a sub-time |
|
|
last
|
last ( self )
Complete the last timing line |
|
|
next
|
next ( self, string )
Complete the previous timing line, starting a new one
parameter:
- string
a short string describing what the program will start
doing next.
|
|
|
setstate
|
setstate ( self, state )
Change the state.
parameter:
- state
1=on (will display messages) 0=off (no output)
|