Muscat.Helpers.Timer module

CheckIntegrity(GUI: bool = False)[source]
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

Reset()[source]

Reset the internal storage (all measured times)

Start()[source]

Start the timer for the current instance

Returns:

self

Return type:

Timer

Stop()[source]

Stop the timer for the current instance

Returns:

self

Return type:

Timer

almanac: Dict[str, List[float | int]] = {}