replay: print current time when paused (#22468)

pull/22470/head
Greg Hogan 2021-10-07 01:41:49 -07:00 committed by GitHub
parent 95957bc188
commit 188b634222
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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;
});