[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/RandomAmbersky/cpp.react/master/src/logging/EventLog.cpp [Back]  [Original]

//          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 

Web Proxy Viewer  |  New URL  |  Original Page