mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-11 07:10:36 +00:00
15 lines
392 B
C++
15 lines
392 B
C++
#include <util/logging/logger_internal.hpp>
|
|
|
|
#include <date/date.h>
|
|
|
|
namespace llarp
|
|
{
|
|
std::ostream&
|
|
operator<<(std::ostream& out, const log_timestamp& ts)
|
|
{
|
|
std::chrono::time_point<std::chrono::system_clock, std::chrono::milliseconds> now{
|
|
std::chrono::milliseconds{ts.now}};
|
|
return date::operator<<(out, now) << " GMT [+" << ts.delta << "]";
|
|
}
|
|
} // namespace llarp
|