blob: ef6517120628cc681431253cb50a55f8f70f3b56 [file] [log] [blame]
Austin Schuh2dc8c7d2021-07-01 17:41:28 -07001#include "aos/events/logging/boot_timestamp.h"
2
3#include <iostream>
4
5#include "aos/time/time.h"
6
7namespace aos::logger {
8std::ostream &operator<<(std::ostream &os,
9 const struct BootTimestamp &timestamp) {
10 return os << "{.boot=" << timestamp.boot << ", .time=" << timestamp.time
11 << "}";
12}
13
Austin Schuh66168842021-08-17 19:42:21 -070014std::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 Schuh58646e22021-08-23 23:51:46 -070020std::ostream &operator<<(std::ostream &os,
21 const struct BootQueueIndex &queue_index) {
Austin Schuh60e77942022-05-16 17:48:24 -070022 return os << "{.boot=" << queue_index.boot << ", .index=" << queue_index.index
23 << "}";
Austin Schuh58646e22021-08-23 23:51:46 -070024}
25
Austin Schuh2dc8c7d2021-07-01 17:41:28 -070026} // namespace aos::logger