Timing Code Execution

Has classes for timing execution

exception TotalDepth.util.ExecTimer.ExceptionExecTimer

Specialisation of exception for this module.

class TotalDepth.util.ExecTimer.ExecEvent(desc)

Records the timing of a single event.

stop(bytes=0)

Stop the timer.

hasCompleted

True if the timer has been stopped.

tExec

Executions time in seconds.

lenDesc()

Length of the task description string.

writeToStderr(descWidth=0)

Write self to sys.stderr.

writeToStream(theS, descWidth=0)

Write self to provided stream.

__weakref__

list of weak references to the object (if defined)

class TotalDepth.util.ExecTimer.ExecTimerList

Maintains a list of execution time objects

__init__()

Constructor

__len__()

Number of task timers.

startNewTimer(theDesc)

Load a new task timer starting right now.

timer

The current timer.

hasActiveTimer

True if there is a running timer, False if there are either no timers or the latest timer is halted.

stopTimer(bytes=0)

Stop current timer.

writeToStderr()

Write self to sys.stderr.

writeToStream(theS)

Write self to provided stream.

__weakref__

list of weak references to the object (if defined)

Previous topic

Directory Walking

Next topic

Look-ahead File Buffer

This Page