From 110189a5a08c82d144026c488ce505375aa1723c Mon Sep 17 00:00:00 2001 From: Luke Schmitt Date: Fri, 9 Aug 2024 23:47:02 +0000 Subject: [PATCH] cleanup --- src/xs_logging.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/xs_logging.cpp b/src/xs_logging.cpp index b54f99e..35921f6 100644 --- a/src/xs_logging.cpp +++ b/src/xs_logging.cpp @@ -82,15 +82,13 @@ void log(logging::Level level, const char * fmt, ...) break; } - using namespace std::chrono; - - auto time_now = system_clock::now().time_since_epoch(); - auto time_s = duration_cast(time_now); + auto time_now = std::chrono::system_clock::now().time_since_epoch(); + auto time_s = std::chrono::duration_cast(time_now); msg = msg + " [" + std::to_string(time_s.count()) // seconds + "." - + std::to_string((time_now - time_s).count()) // get nanoseconds + + std::to_string((time_now - time_s).count()) // nanoseconds + "] "; va_list args;