blob: cdd33b6a53291b19eab8fe023f298afa588c7591 [file] [log] [blame]
#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 &timestamp) {
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}";
}
} // namespace aos::logger