mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-30 01:48:50 +02:00
recast verbose to int8_t to have more level of verbosity (-1 quiet, 0 normal, 1 verbose), add --quiet option, display progress bar when verbosity level >= 0
This commit is contained in:
+4
-1
@@ -22,7 +22,8 @@
|
||||
|
||||
class ProgressBar {
|
||||
public:
|
||||
ProgressBar(std::string mess, int maxValue, int progressLen);
|
||||
ProgressBar(std::string mess, int maxValue, int progressLen,
|
||||
bool quiet = false);
|
||||
void display(int value, char force = 0);
|
||||
void done();
|
||||
void fail();
|
||||
@@ -31,6 +32,8 @@ class ProgressBar {
|
||||
int _maxValue;
|
||||
int _progressLen;
|
||||
clock_t last_time; //records the time of last progress bar update
|
||||
bool _quiet;
|
||||
bool _first;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user