CCF
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
asynchost::TimeBoundLogger Struct Reference

#include <time_bound_logger.h>

Public Types

using TClock = std::chrono::steady_clock
 

Public Member Functions

 TimeBoundLogger (const std::string &m)
 
template<typename Rep , typename Period >
 TimeBoundLogger (const std::string &m, const std::chrono::duration< Rep, Period > &mt)
 
 ~TimeBoundLogger ()
 

Static Public Member Functions

static std::string human_time (const TClock::duration &d)
 

Public Attributes

std::string message
 
TClock::duration max_time
 
TClock::time_point start_time
 

Static Public Attributes

static std::chrono::microseconds default_max_time
 

Member Typedef Documentation

◆ TClock

using asynchost::TimeBoundLogger::TClock = std::chrono::steady_clock

Constructor & Destructor Documentation

◆ TimeBoundLogger() [1/2]

asynchost::TimeBoundLogger::TimeBoundLogger ( const std::string &  m)
inline

◆ TimeBoundLogger() [2/2]

template<typename Rep , typename Period >
asynchost::TimeBoundLogger::TimeBoundLogger ( const std::string &  m,
const std::chrono::duration< Rep, Period > &  mt 
)
inline

◆ ~TimeBoundLogger()

asynchost::TimeBoundLogger::~TimeBoundLogger ( )
inline

Member Function Documentation

◆ human_time()

static std::string asynchost::TimeBoundLogger::human_time ( const TClock::duration &  d)
inlinestatic

Member Data Documentation

◆ default_max_time

std::chrono::microseconds asynchost::TimeBoundLogger::default_max_time
static

◆ max_time

TClock::duration asynchost::TimeBoundLogger::max_time

◆ message

std::string asynchost::TimeBoundLogger::message

◆ start_time

TClock::time_point asynchost::TimeBoundLogger::start_time

The documentation for this struct was generated from the following files: