Simpest usage of ProgressBar
#include <unistd.h>
void DoSomething() {usleep(1e3);}
int main()
{
std::cout << "Congratulations: compilation was succesful" << std::endl;
for (int i = 0; i < 1e3; i++)
{
pbar.
Print(
static_cast<double>(i)/(1e3 - 1.));
DoSomething();
}
}
Contains declaration of class ProgressBar.
Class ProgressBar can be used used to print the progress in an ascii horizontal bar....
Definition PBar.hpp:34
void Print(const double progress)
Prints bar.
Definition PBar.cpp:115