FastMM documentation
FastMM C++ API 0.14.0
Public headers, tier 1 and tier 2
Loading...
Searching...
No Matches
fastmm::LogClockScope Class Reference

While one is alive, the lines the thread logs carry the time of clock instead of the wall clock: a backtest's and a replay's lines name the moment of the data they were written at. More...

#include <fastmm/core/log.hpp>

Public Member Functions

 LogClockScope () noexcept
 Keeps the thread's clock, and restores it at the end (log_switch_run() changes it).
 
 LogClockScope (const SimClock &clock) noexcept
 
 ~LogClockScope ()
 
 LogClockScope (const LogClockScope &)=delete
 
LogClockScope & operator= (const LogClockScope &)=delete
 

Detailed Description

While one is alive, the lines the thread logs carry the time of clock instead of the wall clock: a backtest's and a replay's lines name the moment of the data they were written at.

Constructor & Destructor Documentation

◆ LogClockScope() [1/3]

fastmm::LogClockScope::LogClockScope ( )
inlinenoexcept

Keeps the thread's clock, and restores it at the end (log_switch_run() changes it).

◆ LogClockScope() [2/3]

fastmm::LogClockScope::LogClockScope ( const SimClock &  clock)
inlineexplicitnoexcept

◆ ~LogClockScope()

fastmm::LogClockScope::~LogClockScope ( )
inline

◆ LogClockScope() [3/3]

fastmm::LogClockScope::LogClockScope ( const LogClockScope &  )
delete

Member Function Documentation

◆ operator=()

LogClockScope & fastmm::LogClockScope::operator= ( const LogClockScope &  )
delete