Xped
Loading...
Searching...
No Matches
Xped::util::Stopwatch< ClockClass > Class Template Reference

#include <Stopwatch.hpp>

Public Member Functions

 Stopwatch ()
 
 Stopwatch (std::string filename_input)
 
std::string time_string (TimeUnit u=TimeUnit::NATURAL)
 
std::chrono::seconds time ()
 
double seconds ()
 
void start ()
 
template<typename ThemeType >
std::string info (ThemeType theme, bool RESTART=true)
 
std::string info ()
 
template<typename ThemeType >
void check (ThemeType theme)
 
void check ()
 
template<typename ThemeType , class F , class... ArgTypes>
std::invoke_result_t< F &&(ArgTypes &&...)> runTime (ThemeType theme, F &&f, ArgTypes &&... args)
 

Constructor & Destructor Documentation

◆ Stopwatch() [1/2]

template<typename ClockClass >
Xped::util::Stopwatch< ClockClass >::Stopwatch

◆ Stopwatch() [2/2]

template<typename ClockClass >
Xped::util::Stopwatch< ClockClass >::Stopwatch ( std::string  filename_input)

Member Function Documentation

◆ check() [1/2]

template<typename ClockClass >
void Xped::util::Stopwatch< ClockClass >::check
inline

◆ check() [2/2]

template<typename ClockClass >
template<typename ThemeType >
void Xped::util::Stopwatch< ClockClass >::check ( ThemeType  theme)

◆ info() [1/2]

template<typename ClockClass >
std::string Xped::util::Stopwatch< ClockClass >::info
inline

◆ info() [2/2]

template<typename ClockClass >
template<typename ThemeType >
std::string Xped::util::Stopwatch< ClockClass >::info ( ThemeType  theme,
bool  RESTART = true 
)
Here is the caller graph for this function:

◆ runTime()

template<typename ClockClass >
template<typename ThemeType , class F , class... ArgTypes>
std::invoke_result_t< F &&(ArgTypes &&...)> Xped::util::Stopwatch< ClockClass >::runTime ( ThemeType  theme,
F &&  f,
ArgTypes &&...  args 
)

◆ seconds()

template<typename ClockClass >
double Xped::util::Stopwatch< ClockClass >::seconds
Here is the caller graph for this function:

◆ start()

template<typename ClockClass >
void Xped::util::Stopwatch< ClockClass >::start
inline

◆ time()

template<typename ClockClass >
std::chrono::seconds Xped::util::Stopwatch< ClockClass >::time
Here is the caller graph for this function:

◆ time_string()

template<typename ClockClass >
std::string Xped::util::Stopwatch< ClockClass >::time_string ( TimeUnit  u = TimeUnit::NATURAL)
Here is the call graph for this function:
Here is the caller graph for this function:

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