def __init__(self, filename=None):
        self.filename = None
        if filename:
            self.load(filename)
def stop(self, action_name: str) -> None:
        """Defines how to record the duration once an action is complete."""