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/epoll.h b/aos/events/epoll.h
index 0f335e5..7bc135c 100644
--- a/aos/events/epoll.h
+++ b/aos/events/epoll.h
@@ -36,8 +36,8 @@
SetTime(::aos::monotonic_clock::epoch(), ::aos::monotonic_clock::zero());
}
- // Reads the event. Ignores it.
- void Read();
+ // Reads the event. Returns the number of elapsed cycles.
+ uint64_t Read();
// Returns the file descriptor associated with the timerfd.
int fd() { return fd_; }