Muscat.Helpers.Timer module¶
- class Timer(name=None)[source]¶
Bases:
object
Utility class to measure time spend in the code
- GetDiffTime() float [source]¶
Return the elapsed time measured by this instance
- Returns:
the elapsed time measured by this instance
- Return type:
float
- classmethod PrintTimes() str [source]¶
Return the times recorded by Timer in string format
- Returns:
a string with all the data
- Return type:
str
- almanac: Dict[str, List[float | int]] = {}¶