mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-30 11:02:19 +08:00
nicer replay prints
old-commit-hash: 060b5caf1bfe38dfc28114b167ee578afe650f62
This commit is contained in:
@@ -206,7 +206,7 @@ void Replay::stream() {
|
||||
|
||||
uint64_t t0 = route_start_ts + (seek_ts * 1e9);
|
||||
seek_ts = -1;
|
||||
qDebug() << "unlogging at" << (t0 - route_start_ts) / 1e9;
|
||||
qDebug() << "unlogging at" << int((t0 - route_start_ts) / 1e9);
|
||||
|
||||
// wait until we have events within 1s of the current time
|
||||
auto eit = events.lowerBound(t0);
|
||||
@@ -230,7 +230,7 @@ void Replay::stream() {
|
||||
float timestamp = (tm - route_start_ts)/1e9;
|
||||
if (std::abs(timestamp - last_print) > 5.0) {
|
||||
last_print = timestamp;
|
||||
qInfo() << "at " << last_print;
|
||||
qInfo() << "at " << int(last_print) << "s";
|
||||
}
|
||||
|
||||
// keep time
|
||||
|
||||
Reference in New Issue
Block a user