replay: print current time when paused (#22468)

old-commit-hash: 188b634222
commatwo_master
Greg Hogan 4 years ago committed by GitHub
parent 82f0522647
commit 95843a6754
  1. 4
      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;
});

Loading…
Cancel
Save