diff options
author | Lioncash <mathew1800@gmail.com> | 2019-03-02 20:28:58 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-03-02 20:44:24 +0100 |
commit | f8f1ff0b4f79a6c8807c3bca71e9a7a3ec4bff69 (patch) | |
tree | d6da2afbfecd91459070227a31010ab37bb36e20 /src/common/logging | |
parent | logging/backend: Move CreateEntry into the Impl class (diff) | |
download | yuzu-f8f1ff0b4f79a6c8807c3bca71e9a7a3ec4bff69.tar yuzu-f8f1ff0b4f79a6c8807c3bca71e9a7a3ec4bff69.tar.gz yuzu-f8f1ff0b4f79a6c8807c3bca71e9a7a3ec4bff69.tar.bz2 yuzu-f8f1ff0b4f79a6c8807c3bca71e9a7a3ec4bff69.tar.lz yuzu-f8f1ff0b4f79a6c8807c3bca71e9a7a3ec4bff69.tar.xz yuzu-f8f1ff0b4f79a6c8807c3bca71e9a7a3ec4bff69.tar.zst yuzu-f8f1ff0b4f79a6c8807c3bca71e9a7a3ec4bff69.zip |
Diffstat (limited to '')
-rw-r--r-- | src/common/logging/backend.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp index 555addb95..4462ff3fb 100644 --- a/src/common/logging/backend.cpp +++ b/src/common/logging/backend.cpp @@ -115,8 +115,6 @@ private: using std::chrono::duration_cast; using std::chrono::steady_clock; - static steady_clock::time_point time_origin = steady_clock::now(); - Entry entry; entry.timestamp = duration_cast<std::chrono::microseconds>(steady_clock::now() - time_origin); @@ -135,6 +133,7 @@ private: std::vector<std::unique_ptr<Backend>> backends; Common::MPSCQueue<Log::Entry> message_queue; Filter filter; + std::chrono::steady_clock::time_point time_origin{std::chrono::steady_clock::now()}; }; void ConsoleBackend::Write(const Entry& entry) { |