Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#include <thread>
#include <shogun/base/progress.h>
#include <shogun/io/SGIO.h>
#include <shogun/base/init.h>
using namespace shogun;
int main() {
init_shogun_with_defaults();
SGIO tmp;
tmp.enable_progress();
auto test = progress(range(0, 10), tmp);
#pragma omp parallel for
for (auto it=test.begin(); it < test.end(); it++)
{
std::this_thread::sleep_for(std::chrono::milliseconds(1000));
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.