1#include "progression.h"
18 init(process, total, count);
25 std::cout << process <<
":"; std::cout.flush();
28 next_shown = next_step = (total-1.1)/count;
29 percent_step = 100.0f/count;
40 if (++enumerations > next_shown) {
41 next_shown += next_step;
42 percent += percent_step;
43 std::cout <<
" " << percent <<
"%";
45 std::cout << std::endl;
namespace that holds tools that dont fit any other namespace
this header is dependency free
progression()
create empty progression
void step()
next iteration
void init(const std::string &process, size_t total, int count)
reinitialize