Bitcoin Core  27.99.0
P2P Digital Currency
Classes | Namespaces | Macros
timer.h File Reference
#include <logging.h>
#include <util/macros.h>
#include <util/time.h>
#include <util/types.h>
#include <chrono>
#include <optional>
#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_WITH_CATEGORY(end_msg, log_category)    BCLog::Timer<std::chrono::microseconds> UNIQUE_NAME(logging_timer)(__func__, end_msg, log_category)
 
#define LOG_TIME_MILLIS_WITH_CATEGORY(end_msg, log_category)    BCLog::Timer<std::chrono::milliseconds> UNIQUE_NAME(logging_timer)(__func__, end_msg, log_category)
 
#define LOG_TIME_MILLIS_WITH_CATEGORY_MSG_ONCE(end_msg, log_category)    BCLog::Timer<std::chrono::milliseconds> UNIQUE_NAME(logging_timer)(__func__, end_msg, log_category, /* msg_on_completion=*/false)
 
#define LOG_TIME_SECONDS(end_msg)    BCLog::Timer<std::chrono::seconds> UNIQUE_NAME(logging_timer)(__func__, end_msg)
 

Macro Definition Documentation

◆ LOG_TIME_MICROS_WITH_CATEGORY

#define LOG_TIME_MICROS_WITH_CATEGORY (   end_msg,
  log_category 
)     BCLog::Timer<std::chrono::microseconds> UNIQUE_NAME(logging_timer)(__func__, end_msg, log_category)

Definition at line 101 of file timer.h.

◆ LOG_TIME_MILLIS_WITH_CATEGORY

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

Definition at line 103 of file timer.h.

◆ LOG_TIME_MILLIS_WITH_CATEGORY_MSG_ONCE

#define LOG_TIME_MILLIS_WITH_CATEGORY_MSG_ONCE (   end_msg,
  log_category 
)     BCLog::Timer<std::chrono::milliseconds> UNIQUE_NAME(logging_timer)(__func__, end_msg, log_category, /* msg_on_completion=*/false)

Definition at line 105 of file timer.h.

◆ LOG_TIME_SECONDS

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

Definition at line 107 of file timer.h.