获取经过的时间(秒)
(self)
| 576 | logger.debug(f"{self.name} 耗时: {self.elapsed:.2f} 秒") |
| 577 | |
| 578 | def get_elapsed(self) -> float: |
| 579 | """获取经过的时间(秒)""" |
| 580 | if self.elapsed is not None: |
| 581 | return self.elapsed |
| 582 | if self.start_time is not None: |
| 583 | return time.time() - self.start_time |
| 584 | return 0.0 |
nothing calls this directly
no outgoing calls
no test coverage detected