MINT2
LoadingBar.h
Go to the documentation of this file.
1 #ifndef LOADINGBAR_HH
2 #define LOADINGBAR_HH
3 
4 #include <iostream>
5 #include <vector>
6 #include <string>
7 #include <stdio.h> /* printf */
8 #include <math.h> /* floor */
9 #include <unistd.h>
10 
11 class LoadingBar{
12 
14  int _nSteps;
15  int _prevStep;
16 
17  time_t _tstart;
18 
19  public:
20 
21  LoadingBar(int nIterations, int nSteps = 20);
22 
23  void printTimeDiff(double minutes);
24 
25 
26  void update(int i);
27 
28  ~LoadingBar();
29 
30 };
31 
32 
33 #endif
34 
35 
int _prevStep
Definition: LoadingBar.h:15
int _nIterations
Definition: LoadingBar.h:13
LoadingBar(int nIterations, int nSteps=20)
Definition: LoadingBar.cpp:3
void printTimeDiff(double minutes)
Definition: LoadingBar.cpp:15
void update(int i)
Definition: LoadingBar.cpp:33
int _nSteps
Definition: LoadingBar.h:14
time_t _tstart
Definition: LoadingBar.h:17