Add event time for timers and phased loops
This is the beginning of the framework needed to measure timing reports.
This fills in the last event times needed. Watchers and Fetchers
already have the times well covered.
Change-Id: I31ce8814cee3607a4e615b0359f1408ced1258bc
diff --git a/aos/events/shm_event_loop_test.cc b/aos/events/shm_event_loop_test.cc
index 4406e01..16ac08c 100644
--- a/aos/events/shm_event_loop_test.cc
+++ b/aos/events/shm_event_loop_test.cc
@@ -24,9 +24,10 @@
}
// Clean up anything left there before.
- unlink((FLAGS_shm_base + "test/aos.TestMessage.v0").c_str());
- unlink((FLAGS_shm_base + "test1/aos.TestMessage.v0").c_str());
- unlink((FLAGS_shm_base + "test2/aos.TestMessage.v0").c_str());
+ unlink((FLAGS_shm_base + "/test/aos.TestMessage.v0").c_str());
+ unlink((FLAGS_shm_base + "/test1/aos.TestMessage.v0").c_str());
+ unlink((FLAGS_shm_base + "/test2/aos.TestMessage.v0").c_str());
+ unlink((FLAGS_shm_base + "/test2/aos.TestMessage.v0").c_str());
}
::std::unique_ptr<EventLoop> Make() override {
@@ -145,9 +146,9 @@
// Confirm that we see the missed count when we sleep.
if (times.size() == 0) {
- EXPECT_EQ(count, 1);
+ CHECK_EQ(count, 1);
} else {
- EXPECT_EQ(count, 3);
+ CHECK_EQ(count, 3);
}
times.push_back(loop1->monotonic_now());