Skip to content

Commit 34e4ee0

Browse files
committed
call time_elapsed
1 parent d47173b commit 34e4ee0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pytorch_lightning/callbacks/timer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,4 +170,6 @@ def _check_time_remaining(self, trainer: 'pl.Trainer') -> None:
170170
should_stop = trainer.accelerator.broadcast(should_stop)
171171
trainer.should_stop = trainer.should_stop or should_stop
172172
if should_stop and self._verbose:
173-
rank_zero_info(f"Time limit reached. Elapsed time is {self.time_elapsed}. Signaling Trainer to stop.")
173+
rank_zero_info(
174+
f"Time limit reached. Elapsed time is {self.time_elapsed(RunningStage.TRAINING)}."
175+
f" Signaling Trainer to stop.")

0 commit comments

Comments
 (0)