| #include "aos/events/logging/boot_timestamp.h" |
| |
| #include <iostream> |
| |
| #include "aos/time/time.h" |
| |
| namespace aos::logger { |
| std::ostream &operator<<(std::ostream &os, |
| const struct BootTimestamp ×tamp) { |
| return os << "{.boot=" << timestamp.boot << ", .time=" << timestamp.time |
| << "}"; |
| } |
| |
| std::ostream &operator<<(std::ostream &os, |
| const struct BootDuration &duration) { |
| return os << "{.boot=" << duration.boot |
| << ", .duration=" << duration.duration.count() << "ns}"; |
| } |
| |
| std::ostream &operator<<(std::ostream &os, |
| const struct BootQueueIndex &queue_index) { |
| return os << "{.boot=" << queue_index.boot << ", .index=" << queue_index.index |
| << "}"; |
| } |
| |
| } // namespace aos::logger |