blob: cdd33b6a53291b19eab8fe023f298afa588c7591 [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 Schuh2dc8c7d2021-07-01 17:41:28 -070020} // namespace aos::logger