Utility class to collect performance measurements and statistics.
More...
#include <bmtimer.h>
◆ duration_map_type
test name to duration map
Definition at line 65 of file bmtimer.h.
◆ format
Enumerator |
---|
ct_time | |
ct_ops_per_sec | |
ct_all | |
Definition at line 56 of file bmtimer.h.
◆ chrono_taker() [1/2]
bm::chrono_taker::chrono_taker |
( |
const std::string |
name, |
|
|
unsigned |
repeats = 1 , |
|
|
duration_map_type * |
dmap = 0 |
|
) |
| |
|
inline |
◆ ~chrono_taker()
bm::chrono_taker::~chrono_taker |
( |
| ) |
|
|
inline |
◆ chrono_taker() [2/2]
◆ add_repeats()
void bm::chrono_taker::add_repeats |
( |
unsigned |
inc | ) |
|
|
inline |
◆ operator=()
chrono_taker& bm::chrono_taker::operator= |
( |
const |
chrono_taker | ) |
|
|
delete |
◆ print_duration_map()
- Examples
- sample11.cpp, sample12.cpp, svsample06.cpp, xsample01.cpp, xsample02.cpp, xsample03.cpp, xsample04.cpp, xsample04a.cpp, xsample05.cpp, and xsample06.cpp.
Definition at line 127 of file bmtimer.h.
References ct_all, ct_ops_per_sec, ct_time, and bm::chrono_taker::statistics::repeats.
Referenced by main().
◆ stop()
void bm::chrono_taker::stop |
( |
bool |
silent = false | ) |
|
|
inline |
◆ dmap_
◆ finish_
std::chrono::time_point<std::chrono::steady_clock> bm::chrono_taker::finish_ |
|
protected |
◆ is_stopped_
bool bm::chrono_taker::is_stopped_ |
|
protected |
◆ name_
std::string bm::chrono_taker::name_ |
|
protected |
◆ repeats_
unsigned bm::chrono_taker::repeats_ |
|
protected |
◆ start_
std::chrono::time_point<std::chrono::steady_clock> bm::chrono_taker::start_ |
|
protected |
The documentation for this class was generated from the following file: