Return to homepage
Introduction
Related Pages
Namespaces
Classes
Files
File List
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
}
ProgressBar
Prints a progress bar and timer to stderr.
Definition:
ProgressBar.h:22
Generated on Wed May 11 2016 16:04:21 for Ben's ANITA-3 Analysis Tools by
1.8.11