mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-05 00:05:59 +08:00
replay: print current time when paused (#22468)
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user