duration_from_timeMethod¶
- lsst.utils.timer.duration_from_timeMethod(metadata: MutableMapping | None, method_name: str, clock: str = 'Cpu') float | None¶
 Parse the metadata entries from
timeMethodand return a duration.- Parameters:
 - metadata
collections.abc.MutableMapping The Task metadata that timing metrics were added to.
- method_name
str Name of the timed method to extract a duration for.
- clock
str, optional Options are “Cpu”, “User”, “System”, or “Utc”.
- metadata
 - Returns:
 - duration
float The time elapsed between the start and end of the timed method.
- duration