C++ Library Extensions 2022.12.09
To help learn modern C++ programming
tpf::chrono_random::stop_watch Class Reference

#include <tpf_chrono_random.hpp>

Public Member Functions

 stop_watch ()
 
void reset () const
 
template<typename TimeUnit = milli_t>
auto elapsed (bool bReset=true) const
 
template<typename TimeUnit = milli_t>
std::string elapsed_time (bool bReset=true, TimeUnit dummy_time=TimeUnit{}) const
 

Detailed Description

Definition at line 124 of file tpf_chrono_random.hpp.

Constructor & Destructor Documentation

◆ stop_watch()

tpf::chrono_random::stop_watch::stop_watch ( )
inline

Definition at line 131 of file tpf_chrono_random.hpp.

Member Function Documentation

◆ elapsed()

template<typename TimeUnit = milli_t>
auto tpf::chrono_random::stop_watch::elapsed ( bool  bReset = true) const
inline

Definition at line 137 of file tpf_chrono_random.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ elapsed_time()

template<typename TimeUnit = milli_t>
std::string tpf::chrono_random::stop_watch::elapsed_time ( bool  bReset = true,
TimeUnit  dummy_time = TimeUnit{} 
) const
inline

Definition at line 145 of file tpf_chrono_random.hpp.

Here is the caller graph for this function:

◆ reset()

void tpf::chrono_random::stop_watch::reset ( ) const
inline

Definition at line 134 of file tpf_chrono_random.hpp.

Here is the caller graph for this function:

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