mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-09-02 11:08:49 +02:00
progressBar: use chrono instead of clock
This commit is contained in:
+3
-2
@@ -17,8 +17,8 @@
|
||||
|
||||
#ifndef PROGRESSBARE_HPP
|
||||
#define PROGRESSBARE_HPP
|
||||
#include <time.h>
|
||||
#include <iostream>
|
||||
#include <chrono>
|
||||
|
||||
class ProgressBar {
|
||||
public:
|
||||
@@ -31,7 +31,8 @@ class ProgressBar {
|
||||
std::string _mess;
|
||||
int _maxValue;
|
||||
int _progressLen;
|
||||
clock_t last_time; //records the time of last progress bar update
|
||||
//records the time of last progress bar update
|
||||
std::chrono::time_point<std::chrono::system_clock> last_time;
|
||||
bool _quiet;
|
||||
bool _first;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user