Austin Schuh | 2dc8c7d | 2021-07-01 17:41:28 -0700 | [diff] [blame] | 1 | #include "aos/events/logging/boot_timestamp.h" |
| 2 | |
| 3 | #include <iostream> |
| 4 | |
| 5 | #include "aos/time/time.h" |
| 6 | |
| 7 | namespace aos::logger { |
| 8 | std::ostream &operator<<(std::ostream &os, |
| 9 | const struct BootTimestamp ×tamp) { |
| 10 | return os << "{.boot=" << timestamp.boot << ", .time=" << timestamp.time |
| 11 | << "}"; |
| 12 | } |
| 13 | |
Austin Schuh | 6616884 | 2021-08-17 19:42:21 -0700 | [diff] [blame] | 14 | std::ostream &operator<<(std::ostream &os, |
| 15 | const struct BootDuration &duration) { |
| 16 | return os << "{.boot=" << duration.boot |
| 17 | << ", .duration=" << duration.duration.count() << "ns}"; |
| 18 | } |
| 19 | |
Austin Schuh | 58646e2 | 2021-08-23 23:51:46 -0700 | [diff] [blame] | 20 | std::ostream &operator<<(std::ostream &os, |
| 21 | const struct BootQueueIndex &queue_index) { |
Austin Schuh | 60e7794 | 2022-05-16 17:48:24 -0700 | [diff] [blame] | 22 | return os << "{.boot=" << queue_index.boot << ", .index=" << queue_index.index |
| 23 | << "}"; |
Austin Schuh | 58646e2 | 2021-08-23 23:51:46 -0700 | [diff] [blame] | 24 | } |
| 25 | |
Austin Schuh | 2dc8c7d | 2021-07-01 17:41:28 -0700 | [diff] [blame] | 26 | } // namespace aos::logger |