Make SimulatedEventLoop log the correct time
Mock time out for LOG statements so the logged time is the simulated
time. This makes it so all the plotting tools will work, and makes it
so it's easier to debug simulations.
Change-Id: I902b6c52dc6008e5812cde9ec6cacdf72f13206e
diff --git a/aos/logging/implementations_test.cc b/aos/logging/implementations_test.cc
index ef69658..ecf66e9 100644
--- a/aos/logging/implementations_test.cc
+++ b/aos/logging/implementations_test.cc
@@ -22,7 +22,7 @@
class TestLogImplementation : public SimpleLogImplementation {
__attribute__((format(GOOD_PRINTF_FORMAT_TYPE, 3, 0)))
void DoLog(log_level level, const char *format, va_list ap) override {
- internal::FillInMessage(level, format, ap, &message_);
+ internal::FillInMessage(level, monotonic_now(), format, ap, &message_);
if (level == FATAL) {
internal::PrintMessage(stderr, message_);