pwtools.timer.TagTimer.t¶
- TagTimer.t(tag)[source]¶
Assign and save a numeric value (a time value) in a storage array associated with tag.
- Parameters:
tag (anything hashable) – a tag (most likely a string) associated with a storage array
Notes
After initialization, self.time_ar_dict[tag] == [None, None].
The 1st call assings self.time_ar_dict[tag][0] = <time>.The 2nd call assings self.time_ar_dict[tag][1] = <time>.The 3rd call resets self.time_ar_dict[tag] = [None, None]and recursively calls t(), which then does the the same as the 1st.…