Counter#
How to reference this class#
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`Counter <class-counter>`
[Counter](#class-counter)
Detailed description#
Member Functions: Public#
Complete Member Function Documentation#
begin_count_#
void Counter::begin_count_(int counter_level, time_point t)
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`void Counter::begin_count_(int counter_level, time_point t) <counter-public-void-counter-begin-count-underscore-int-counter-level-time-point-t>`
[void Counter::begin_count_(int counter_level, time_point t)](#counter-public-void-counter-begin-count-underscore-int-counter-level-time-point-t)
compute_min_max_avg_sd_#
std::array<std::array<double, 4>, 4> Counter::compute_min_max_avg_sd_() const
update variables : avg_time_per_step_ , min_time_per_step_ , max_time_per_step_ , sd_time_per_step_
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`std::array<std::array<double, 4>, 4> Counter::compute_min_max_avg_sd_() const <counter-public-std-array-std-array-double-4-4-counter-compute-min-max-avg-sd-underscore-const>`
[std::array<std::array<double, 4>, 4> Counter::compute_min_max_avg_sd_() const](#counter-public-std-array-std-array-double-4-4-counter-compute-min-max-avg-sd-underscore-const)
Counter#
Counter::Counter(int counter_level, std::string counter_name, std::string counter_family="None", bool is_comm=false, bool is_gpu=false)
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`Counter::Counter(int counter_level, std::string counter_name, std::string counter_family="None", bool is_comm=false, bool is_gpu=false) <counter-public-counter-counter-int-counter-level-std-string-counter-name-std-string-counter-family-equal-"none"-bool-is-comm-equal-false-bool-is-gpu-equal-false>`
[Counter::Counter(int counter_level, std::string counter_name, std::string counter_family="None", bool is_comm=false, bool is_gpu=false)](#counter-public-counter-counter-int-counter-level-std-string-counter-name-std-string-counter-family-equal-"none"-bool-is-comm-equal-false-bool-is-gpu-equal-false)
end_count_#
void Counter::end_count_(int count_increment, long int quantity_increment, time_point t_stop)
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`void Counter::end_count_(int count_increment, long int quantity_increment, time_point t_stop) <counter-public-void-counter-end-count-underscore-int-count-increment-long-int-quantity-increment-time-point-t-stop>`
[void Counter::end_count_(int count_increment, long int quantity_increment, time_point t_stop)](#counter-public-void-counter-end-count-underscore-int-count-increment-long-int-quantity-increment-time-point-t-stop)
get_time_#
double Counter::get_time_() const
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`double Counter::get_time_() const <counter-public-double-counter-get-time-underscore-const>`
[double Counter::get_time_() const](#counter-public-double-counter-get-time-underscore-const)
now#
time_point Counter::now()
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`time_point Counter::now() <counter-public-time-point-counter-now>`
[time_point Counter::now()](#counter-public-time-point-counter-now)
reset#
void Counter::reset()
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`void Counter::reset() <counter-public-void-counter-reset>`
[void Counter::reset()](#counter-public-void-counter-reset)
running_#
bool Counter::running_() const
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`bool Counter::running_() const <counter-public-bool-counter-running-underscore-const>`
[bool Counter::running_() const](#counter-public-bool-counter-running-underscore-const)
set_parent#
void Counter::set_parent(Counter *parent_counter)
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`void Counter::set_parent(Counter *parent_counter) <counter-public-void-counter-set-parent-counter-ptr-parent-counter>`
[void Counter::set_parent(Counter *parent_counter)](#counter-public-void-counter-set-parent-counter-ptr-parent-counter)
Attributes Documentation#
double Counter::avg_time_per_step_
int Counter::count_
const std::string Counter::description_
const std::string Counter::family_
const bool Counter::is_comm_
const bool Counter::is_gpu_
bool Counter::is_running_
time_point Counter::last_open_time_
time_point Counter::last_open_time_alone_
int Counter::level_
double Counter::max_time_per_step_
double Counter::min_time_per_step_
time_point Counter::open_time_ts_
Counter* Counter::parent_
long int Counter::quantity_
duration Counter::time_alone_
duration Counter::time_ts_
duration Counter::total_time_
double Counter::var_time_per_step_