blob: ef6517120628cc681431253cb50a55f8f70f3b56 [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}";
}
std::ostream &operator<<(std::ostream &os,
const struct BootQueueIndex &queue_index) {
return os << "{.boot=" << queue_index.boot << ", .index=" << queue_index.index
<< "}";
}
} // namespace aos::logger