#include <ProgressMonitor.h>
Definition at line 34 of file ProgressMonitor.h.
◆ ProgressMonitor()
ProgressMonitor::ProgressMonitor |
( |
size_t |
fr_total, |
|
|
bool |
b_bar = true , |
|
|
float |
report_interval = 250.0 , |
|
|
std::ostream & |
out = std::cerr |
|
) |
| |
|
explicit |
Definition at line 16 of file ProgressMonitor.cpp.
19 time_stamp(chc::high_resolution_clock::now()), unit(
"kHz"),
20 unit_bar(
"#"), unit_space(
"-")
25 this->report_interval = report_interval;
std::atomic< bool > report_set
std::atomic< size_t > fr_count_i
std::atomic< size_t > fr_count
std::atomic< bool > report_set_public
◆ operator++()
Definition at line 44 of file ProgressMonitor.cpp.
48 auto mil_secs = chc::duration_cast<float_ms>(chc::high_resolution_clock::now() - time_stamp).count();
55 Report(
fr_count, fr_avg / fr_count_a);
◆ operator+=()
Definition at line 62 of file ProgressMonitor.cpp.
66 auto mil_secs = chc::duration_cast<float_ms>(chc::high_resolution_clock::now() - time_stamp).count();
73 Report(
fr_count, fr_avg / fr_count_a);
◆ reset_flags()
void ProgressMonitor::reset_flags |
( |
| ) |
|
◆ DEFAULT_WIDTH
const int ProgressMonitor::DEFAULT_WIDTH |
|
static |
◆ first_frame
bool ProgressMonitor::first_frame |
◆ fr_count
std::atomic<size_t> ProgressMonitor::fr_count |
◆ fr_count_i
std::atomic<size_t> ProgressMonitor::fr_count_i |
◆ fr_freq
float ProgressMonitor::fr_freq |
◆ fr_total
size_t ProgressMonitor::fr_total |
◆ report_set
std::atomic<bool> ProgressMonitor::report_set |
◆ report_set_public
std::atomic<bool> ProgressMonitor::report_set_public |
The documentation for this class was generated from the following files: