Public Member Functions | |
def | __init__ |
def | execute |
def | get_execution_time |
def | get_number_executions |
def | timed_execute |
Public Attributes | |
num_executions | |
total_time |
State class that measures times and executions
Definition at line 15 of file timed_state.py.
def iri_common_smach.timed_state.TimedState.__init__ | ( | self, | |
args | |||
) |
Init method also initializes timer and executions counter WARNING user state should call the init of this class : timed_state.TimedState.__init__(...)
Definition at line 19 of file timed_state.py.
def iri_common_smach.timed_state.TimedState.execute | ( | self, | |
userdata | |||
) |
Calls timed_execute and measures its execution time WARNING Don't redefine this method
Definition at line 28 of file timed_state.py.
Definition at line 46 of file timed_state.py.
Definition at line 49 of file timed_state.py.
def iri_common_smach.timed_state.TimedState.timed_execute | ( | self, | |
userdata | |||
) |
Use this method instead of execute Code executed here is timed
Definition at line 39 of file timed_state.py.
Definition at line 22 of file timed_state.py.
Definition at line 22 of file timed_state.py.