#include <timer.hpp>
|
using | Clock = std::chrono::high_resolution_clock |
|
using | TimeType = Clock::time_point |
|
|
| Timer (std::size_t num_iterations=0, double auto_print=-1., bool erase_lines=false) |
|
| Timer (std::size_t num_iterations, std::chrono::duration< double > auto_print, bool erase_lines=false) |
|
| Timer (const std::string &label, std::size_t num_iterations=0, double auto_print=-1., bool erase_lines=false) |
|
| Timer (const std::string &label, std::size_t num_iterations, std::chrono::duration< double > auto_print, bool erase_lines=false) |
|
| Timer (const Timer &)=default |
|
Timer & | operator= (const Timer &)=default |
|
| Timer (Timer &&)=default |
|
Timer & | operator= (Timer &&)=default |
|
| ~Timer ()=default |
|
void | Iterate () |
|
void | Restart () |
|
void | Restart (std::size_t num_iterations) |
|
std::chrono::duration< double > | ElapsedTime () const |
|
std::chrono::duration< double > | RemainingTime () const |
|
std::size_t | Iteration () const |
|
Timer & | Iteration (size_t iteration) |
|
std::size_t | NumIterations () const |
|
Timer & | NumIterations (std::size_t num_iterations) |
|
std::chrono::duration< double > | AutoPrintTime () const |
|
Timer & | AutoPrintTime (double auto_print) |
|
Timer & | AutoPrintTime (std::chrono::duration< double > auto_print) |
|
const std::string & | Label () const |
|
Timer & | Label (const std::string &label) |
|
Definition at line 9 of file timer.hpp.
Timer::Timer |
( |
std::size_t |
num_iterations = 0 , |
|
|
double |
auto_print = -1. , |
|
|
bool |
erase_lines = false |
|
) |
| |
|
explicit |
Timer::Timer |
( |
std::size_t |
num_iterations, |
|
|
std::chrono::duration< double > |
auto_print, |
|
|
bool |
erase_lines = false |
|
) |
| |
Timer::Timer |
( |
const std::string & |
label, |
|
|
std::size_t |
num_iterations = 0 , |
|
|
double |
auto_print = -1. , |
|
|
bool |
erase_lines = false |
|
) |
| |
|
explicit |
Timer::Timer |
( |
const std::string & |
label, |
|
|
std::size_t |
num_iterations, |
|
|
std::chrono::duration< double > |
auto_print, |
|
|
bool |
erase_lines = false |
|
) |
| |
Timer::Timer |
( |
const Timer & |
| ) |
|
|
default |
Timer::Timer |
( |
Timer && |
| ) |
|
|
default |
chrono::duration< double > Timer::AutoPrintTime |
( |
| ) |
const |
Timer & Timer::AutoPrintTime |
( |
double |
auto_print | ) |
|
Timer& Timer::AutoPrintTime |
( |
std::chrono::duration< double > |
auto_print | ) |
|
chrono::duration< double > Timer::ElapsedTime |
( |
| ) |
const |
size_t Timer::Iteration |
( |
| ) |
const |
Timer & Timer::Iteration |
( |
size_t |
iteration | ) |
|
const std::string & Timer::Label |
( |
| ) |
const |
Timer & Timer::Label |
( |
const std::string & |
label | ) |
|
size_t Timer::NumIterations |
( |
| ) |
const |
Timer& Timer::NumIterations |
( |
std::size_t |
num_iterations | ) |
|
chrono::duration< double > Timer::RemainingTime |
( |
| ) |
const |
void Timer::Restart |
( |
std::size_t |
num_iterations | ) |
|
std::ostream& operator<< |
( |
std::ostream & |
stream, |
|
|
const Timer & |
timer |
|
) |
| |
|
friend |
std::chrono::duration<double> Timer::auto_print_ |
|
private |
std::size_t Timer::iteration_ |
|
private |
std::string Timer::label_ |
|
private |
std::size_t Timer::num_iterations_ |
|
private |
The documentation for this class was generated from the following files: