testProgressBar.cxx
1 /* -*- C++ -*-.***************************************************************************************************
2  Author: Ben Strutt
3  Email: b.strutt.12@ucl.ac.uk
4 
5  Description:
6  Just for fun.
7 *************************************************************************************************************** */
8 
9 #include "ProgressBar.h"
10 #include <unistd.h>
11 
12 int main(){
13 
14  ProgressBar progress(100);
15  for(int i=0; i<100; i++){
16  progress++;
17  }
18 
19  Int_t n2 = 11024;
20  ProgressBar progress2(n2);
21  for(int i=0; i<n2; i++){
22  progress2++;
23  usleep(20000);
24  // std::cerr << "some text output" << std::endl;
25  }
26 
27 
28  return 0;
29 }
Prints a progress bar and timer to stderr.
Definition: ProgressBar.h:22