Estimate the distributed clock with boots accounted for
Route the current boot through both the noncausal filter, and the
timestamp solver code. This gets us 1 step closer to exposing boots
to the user.
This stops before changing log_reader though. We still CHECK on the way
into the SimulatedEventLoopFactory that actually runs reading. This
felt like a reasonable intermediate point.
Change-Id: I85d0735c449a2aacf8cc457bdbcdbd667f1809ef
Signed-off-by: Austin Schuh <austin.schuh@bluerivertech.com>
diff --git a/aos/network/testing_time_converter.h b/aos/network/testing_time_converter.h
index 6d9fd8f..5ffdc01 100644
--- a/aos/network/testing_time_converter.h
+++ b/aos/network/testing_time_converter.h
@@ -32,27 +32,27 @@
// duration that the distributed clock elapsed by. Note: time must always go
// forwards.
std::chrono::nanoseconds AddMonotonic(
- std::vector<monotonic_clock::time_point> times);
+ std::vector<logger::BootTimestamp> times);
// Adds a distributed to monotonic clock mapping to the queue.
void AddNextTimestamp(distributed_clock::time_point time,
- std::vector<monotonic_clock::time_point> times);
+ std::vector<logger::BootTimestamp> times);
std::optional<std::tuple<distributed_clock::time_point,
- std::vector<monotonic_clock::time_point>>>
+ std::vector<logger::BootTimestamp>>>
NextTimestamp() override;
private:
// List of timestamps.
std::deque<std::tuple<distributed_clock::time_point,
- std::vector<monotonic_clock::time_point>>>
+ std::vector<logger::BootTimestamp>>>
ts_;
// True if there is no time queued.
bool first_ = true;
// The last times returned on all clocks.
distributed_clock::time_point last_distributed_ = distributed_clock::epoch();
- std::vector<monotonic_clock::time_point> last_monotonic_;
+ std::vector<logger::BootTimestamp> last_monotonic_;
};
} // namespace message_bridge