HPCToolkit
ProgressBar_test.cpp
Go to the documentation of this file.
1 /*
2  * ProgressBar_test.cpp
3  *
4  * Created on: Jun 25, 2013
5  * Author: pat2
6  */
7 
8 #include "../ProgressBar.hpp"
9 
10 #include <iostream>
11 using namespace std;
12 
13 using namespace TraceviewerServer;
14 
15 void progBarTest() {
16 
17 
18  ProgressBar bar("Work", 83);
19  int q =0;
20  for (int i = 0; i < 12; i++) {
21  q++;
22  bar.incrementProgress();
23  usleep(100000*i);
24  }
25  for (int i = 0; i < 12; i++) {
26  q+= i;
27  bar.incrementProgress(i);
28  usleep(100000*(12-i));
29  }
30  bar.incrementProgress(83-q);
31 
32 }
33 
void progBarTest()
void incrementProgress(ulong tasks)
Definition: ProgressBar.cpp:86