Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::log_stopwatch< 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_stopwatch (const char *func, hpp::source_location loc=hpp::source_location::current())
 
 ~log_stopwatch ()
 

Public Attributes

timepoint_t start = clock_t::now()
 
const char * func_ {}
 
hpp::source_location location_
 

Detailed Description

template<spdlog::level::level_enum lvl = spdlog::level::debug, typename T = std::chrono::microseconds>
struct unravel::log_stopwatch< 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_stopwatch< 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_stopwatch< lvl, T >::timepoint_t = clock_t::time_point

Definition at line 59 of file logging.h.

Constructor & Destructor Documentation

◆ log_stopwatch()

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

Definition at line 65 of file logging.h.

◆ ~log_stopwatch()

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

Definition at line 72 of file logging.h.

Member Data Documentation

◆ func_

template<spdlog::level::level_enum lvl = spdlog::level::debug, typename T = std::chrono::microseconds>
const char* unravel::log_stopwatch< lvl, T >::func_ {}

Definition at line 62 of file logging.h.

◆ location_

template<spdlog::level::level_enum lvl = spdlog::level::debug, typename T = std::chrono::microseconds>
hpp::source_location unravel::log_stopwatch< lvl, T >::location_

Definition at line 63 of file logging.h.

◆ start

template<spdlog::level::level_enum lvl = spdlog::level::debug, typename T = std::chrono::microseconds>
timepoint_t unravel::log_stopwatch< 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: