TimingData
(class from pyomo.contrib.pyros.util
)
- class pyomo.contrib.pyros.util.TimingData[source]
Bases:
object
PyROS solver timing data object.
Implemented as a wrapper around common.timing.HierarchicalTimer, with added functionality for enforcing a standardized hierarchy of identifiers.
- hierarchical_timer_full_ids
(Class attribute.) Valid identifiers for use with the encapsulated hierarchical timer.
Methods
__init__
()Initialize self (see class docstring).
Get total time elapsed for main timer of the HierarchicalTimer contained in self.
get_total_time
(full_identifier)Get total time spent with identifier active.
start_timer
(full_identifier)Start timer for self.hierarchical_timer.
stop_timer
(full_identifier)Stop timer for self.hierarchical_timer.
Attributes
Member Documentation
- get_main_elapsed_time()[source]
Get total time elapsed for main timer of the HierarchicalTimer contained in self.
- Returns:
Total elapsed time.
- Return type:
Note
This method is meant for use while the main timer is active. Otherwise, use
self.get_total_time("main")
.