MCPcopy
hub / github.com/Textualize/rich / elapsed

Method elapsed

rich/progress.py:1000–1006  ·  view source on GitHub ↗

Optional[float]: Time elapsed since task was started, or ``None`` if the task hasn't started.

(self)

Source from the content-addressed store, hash-verified

998
999 @property
1000 def elapsed(self) -> Optional[float]:
1001 """Optional[float]: Time elapsed since task was started, or ``None`` if the task hasn't started."""
1002 if self.start_time is None:
1003 return None
1004 if self.stop_time is not None:
1005 return self.stop_time - self.start_time
1006 return self.get_time() - self.start_time
1007
1008 @property
1009 def finished(self) -> bool:

Callers

nothing calls this directly

Calls 1

get_timeMethod · 0.95

Tested by

no test coverage detected