def save(self, filename=None):
        filename = Path(filename) if filename is not None else self.filename
        with filename.open("w") as f:
            f.write(self.yaml)
def __init__(self, duration_secs):
    self._start_time_secs = time.time()
    self._duration_secs = duration_secs