Skip to content

Commit

Permalink
added missing logger_state header
Browse files Browse the repository at this point in the history
  • Loading branch information
bnicolae committed Jul 5, 2023
1 parent 71248ca commit 287d7ae
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/common/logger_state.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#ifndef __LOGGER_STATE
#define __LOGGER_STATE

#include <iostream>
#include <chrono>
#include <mutex>

struct logger_state_t {
std::ostream *logger = &std::cout;
std::chrono::time_point<std::chrono::steady_clock> beginning = std::chrono::steady_clock::now();
std::mutex log_mutex;
};

#endif //__LOGGER_STATE

0 comments on commit 287d7ae

Please sign in to comment.