timing_module#
Module: fridom.framework.timing_module
Classes
|
Keep track of the time spent in a particular component of the model. |
Container class for TimingComponent objects. |
timing_module.py - Keep track of the time spent in different model components.
- class fridom.framework.timing_module.TimingComponent(name: str)[source]#
Bases:
objectKeep track of the time spent in a particular component of the model.
- class fridom.framework.timing_module.TimingModule[source]#
Bases:
objectContainer class for TimingComponent objects.
- add_component(name: str) None[source]#
Add a new TimingComponent to the TimingModule.
- Arguments:
name (str): name of the new component
- get(name: str) TimingComponent[source]#
Get the TimingComponent with the given name.
If the component is not found, add a new component with the given name.
- Arguments:
name (str): name of the component to get