Bitcoin Core  0.21.1
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
Classes | Namespaces | Macros
timer.h File Reference
#include <logging.h>
#include <util/macros.h>
#include <util/time.h>
#include <chrono>
#include <string>
Include dependency graph for timer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  BCLog::Timer< TimeType >
 RAII-style object that outputs timing information to logs. More...
 

Namespaces

 BCLog
 

Macros

#define LOG_TIME_MILLIS_WITH_CATEGORY(end_msg, log_category)   BCLog::Timer<std::chrono::milliseconds> PASTE2(logging_timer, __COUNTER__)(__func__, end_msg, log_category)
 
#define LOG_TIME_SECONDS(end_msg)   BCLog::Timer<std::chrono::seconds> PASTE2(logging_timer, __COUNTER__)(__func__, end_msg)
 

Macro Definition Documentation

#define LOG_TIME_MILLIS_WITH_CATEGORY (   end_msg,
  log_category 
)    BCLog::Timer<std::chrono::milliseconds> PASTE2(logging_timer, __COUNTER__)(__func__, end_msg, log_category)

Definition at line 96 of file timer.h.

#define LOG_TIME_SECONDS (   end_msg)    BCLog::Timer<std::chrono::seconds> PASTE2(logging_timer, __COUNTER__)(__func__, end_msg)

Definition at line 98 of file timer.h.