(class from pyomo.common.timing)
pyomo.common.timing
Bases: object
object
Set reporting of Pyomo timing information.
For historical reasons, this class may be used as a function (the reporting logger is configured as part of the instance initializer). However, the preferred usage is as a context manager (thereby ensuring that the timing logger is restored upon exit).
stream (bool, TextIOBase) – The destination stream to emit timing information. If True, defaults to sys.stdout. If False or None, disables reporting of timing information.
True
sys.stdout
False
None
level (int) – The logging level for the timing logger
Methods
__init__([stream, level])
__init__
reset()
reset
Member Documentation