Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::log_duration< lvl, T > Struct Template Reference

#include <logging.h>

Public Types

using clock_t = std::chrono::high_resolution_clock
 
using timepoint_t = clock_t::time_point
 

Public Member Functions

 log_duration (const std::string &func, hpp::source_location loc=hpp::source_location::current())
 
 ~log_duration ()
 

Public Attributes

timepoint_t start = clock_t::now()
 
std::string func_ {}
 

Detailed Description

template<spdlog::level::level_enum lvl = spdlog::level::debug, typename T = std::chrono::microseconds>
struct unravel::log_duration< lvl, T >

Definition at line 56 of file logging.h.

Member Typedef Documentation

◆ clock_t

template<spdlog::level::level_enum lvl = spdlog::level::debug, typename T = std::chrono::microseconds>
using unravel::log_duration< lvl, T >::clock_t = std::chrono::high_resolution_clock

Definition at line 58 of file logging.h.

◆ timepoint_t

template<spdlog::level::level_enum lvl = spdlog::level::debug, typename T = std::chrono::microseconds>
using unravel::log_duration< lvl, T >::timepoint_t = clock_t::time_point

Definition at line 59 of file logging.h.

Constructor & Destructor Documentation

◆ log_duration()

template<spdlog::level::level_enum lvl = spdlog::level::debug, typename T = std::chrono::microseconds>
unravel::log_duration< lvl, T >::log_duration ( const std::string & func,
hpp::source_location loc = hpp::source_location::current() )
inline

Definition at line 64 of file logging.h.

◆ ~log_duration()

template<spdlog::level::level_enum lvl = spdlog::level::debug, typename T = std::chrono::microseconds>
unravel::log_duration< lvl, T >::~log_duration ( )
inline

Definition at line 70 of file logging.h.

Member Data Documentation

◆ func_

template<spdlog::level::level_enum lvl = spdlog::level::debug, typename T = std::chrono::microseconds>
std::string unravel::log_duration< lvl, T >::func_ {}

Definition at line 62 of file logging.h.

◆ start

template<spdlog::level::level_enum lvl = spdlog::level::debug, typename T = std::chrono::microseconds>
timepoint_t unravel::log_duration< lvl, T >::start = clock_t::now()

Definition at line 61 of file logging.h.


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