FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GitHub Viewer

// Copyright Sebastian Jeckel 2014. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include "react/logging/EventLog.h" /***************************************/ REACT_IMPL_BEGIN /**************************************/ using std::chrono::duration_cast; using std::chrono::microseconds; /////////////////////////////////////////////////////////////////////////////////////////////////// /// EventLog /////////////////////////////////////////////////////////////////////////////////////////////////// EventLog::Entry::Entry() : time_{ std::chrono::system_clock::now() }, data_{ nullptr } { } EventLog::Entry::Entry(const Entry& other) : time_{ other.time_ }, data_{ other.data_} { } EventLog::Entry::Entry(IEventRecord* ptr) : time_{ std::chrono::system_clock::now() }, data_{ ptr } { } void EventLog::Entry::Serialize(std::ostream& out, const TimestampT& startTime) const { out

Back | FazBrowse Home | New Git URL