From 95843a67545a1b35df65bbcec45a665b17e7ab58 Mon Sep 17 00:00:00 2001 From: Greg Hogan Date: Thu, 7 Oct 2021 01:41:49 -0700 Subject: [PATCH] replay: print current time when paused (#22468) old-commit-hash: 188b634222bb97af08afe4a37028a5e9b64d499b --- selfdrive/ui/replay/replay.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/selfdrive/ui/replay/replay.cc b/selfdrive/ui/replay/replay.cc index 26588bde2e..d977b56752 100644 --- a/selfdrive/ui/replay/replay.cc +++ b/selfdrive/ui/replay/replay.cc @@ -110,6 +110,10 @@ void Replay::seekTo(int seconds, bool relative) { void Replay::pause(bool pause) { updateEvents([=]() { qDebug() << (pause ? "paused..." : "resuming"); + if (pause) { + float current_ts = (cur_mono_time_ - route_start_ts_) / 1e9; + qInfo() << "at " << current_ts << "s"; + } paused_ = pause; return true; });