ProgressCounter class
A counter showing progress in percent.
Prints to the R console in a thread safe manner using Rcout (an instance of RcppThread::Rprinter).
Base classes
- class ProgressPrinter
- Abstract class for printing progress.
Constructors, destructors, conversion operators
- ProgressCounter(size_t numIt, size_t printEvery, std::string custom_msg = "Computing: ")
Private functions
- void printProgress() virtual
Function documentation
RcppThread:: ProgressCounter:: ProgressCounter(size_t numIt,
size_t printEvery,
std::string custom_msg = "Computing: ")
| Parameters | |
|---|---|
| numIt | total number of iterations. |
| printEvery | how regularly to print updates (in seconds). |
| custom_msg | (optional) a custom message to be printed before the progress count; default is "Computing: ". |
constructs a progress counter.
void RcppThread:: ProgressCounter:: printProgress() virtual private
prints progress in percent to the R console (+ an estimate of remaining time).