MCPcopy Create free account
hub / github.com/BirolLab/abyss / progressUpdate

Function progressUpdate

RResolver/RUtils.cpp:33–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33void
34progressUpdate()
35{
36 if (opt::verbose) {
37 assert(progressRunning);
38 progressUpdates++;
39 assert(progressUpdates <= progressTotal);
40 double fraction = double(progressUpdates) / progressTotal;
41
42 if (progressUpdates == progressTotal) {
43 std::cerr << "\rProgress: 100%\n" << progressName << " done." << std::endl;
44 progressRunning = false;
45 } else if (
46 double(progressUpdates - progressLastPrinted) / progressTotal >=
47 PROGRESS_PRINT_FRACTION &&
48 progressUpdates < progressTotal) {
49 std::cerr << "\rProgress: " << int(fraction * 100.0) << "%" << std::flush;
50 progressLastPrinted = progressUpdates;
51 }
52 }
53}
54
55unsigned
56nChoosek(unsigned n, unsigned k)

Callers 2

resolveRepeatsFunction · 0.85
processGraphFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected