clenspy.utils.time_method

clenspy.utils.time_method(func)[source]

Decorator: record each call’s wall-clock time in self.timings (a dict mapping method name to a list of elapsed seconds), and print it if self.verbose is truthy.

Parameters:

func (callable) – Method to time.

Returns:

callable – Wrapped method with the same signature and return value.