Commit d9e2fc97 by Maarten L. Hekkelman

Added missing spinner test

parent 85dfdf41
#include <cif++/utilities.hpp>
#include <random>
#include <thread>
int main()
{
cif::progress_bar pb(10, "test");
std::random_device rd;
std::mt19937 gen(rd());
std::uniform_int_distribution<> distrib(100, 1000);
for (int i = 0; i < 10; ++i)
{
std::this_thread::sleep_for(std::chrono::milliseconds(distrib(gen)));
pb.message("step " + std::to_string(i));
pb.consumed(1);
}
return 0;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment