Bitcoin Core  0.19.99
P2P Digital Currency
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_MICROS(end_msg, ...)   BCLog::Timer<std::chrono::microseconds> PASTE2(logging_timer, __COUNTER__)(__func__, end_msg, ## __VA_ARGS__)
 
#define LOG_TIME_MILLIS(end_msg, ...)   BCLog::Timer<std::chrono::milliseconds> PASTE2(logging_timer, __COUNTER__)(__func__, end_msg, ## __VA_ARGS__)
 
#define LOG_TIME_SECONDS(end_msg, ...)   BCLog::Timer<std::chrono::seconds> PASTE2(logging_timer, __COUNTER__)(__func__, end_msg, ## __VA_ARGS__)
 

Macro Definition Documentation

◆ LOG_TIME_MICROS

#define LOG_TIME_MICROS (   end_msg,
  ... 
)    BCLog::Timer<std::chrono::microseconds> PASTE2(logging_timer, __COUNTER__)(__func__, end_msg, ## __VA_ARGS__)

Definition at line 96 of file timer.h.

◆ LOG_TIME_MILLIS

#define LOG_TIME_MILLIS (   end_msg,
  ... 
)    BCLog::Timer<std::chrono::milliseconds> PASTE2(logging_timer, __COUNTER__)(__func__, end_msg, ## __VA_ARGS__)

Definition at line 98 of file timer.h.

◆ LOG_TIME_SECONDS

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

Definition at line 100 of file timer.h.