27 #include "../StringUtils.h" 28 #include "../../core/translator/Translator.h" 32 : m_totalSteps(totalSteps),
67 double remainingTimeInSec = (
static_cast<double>(remainingSteps) /
m_speedTime);
98 strTime +=
TE_TR(
"Remaining Time: Less than one minute");
104 strTime +=
TE_TR(
" Steps/Second");
time_t m_startTime
Initial time.
void setMessage(std::string message)
Set the message used by task progress.
int m_count
Internal counter.
double m_speedTime
Speed time in seconds.
void tick()
Define a new step process evolution.
#define TE_TR(message)
It marks a string in order to get translated.
double getRemainingTimeInMin() const
Function used to get the remaining time to end the process.
double getSpeedTimeInSec() const
Function used to get the speed time.
std::string m_message
Original task message.
double m_remainingTime
Remaining time in minutes.
void start()
Start the internal timer.
ProgressTimer(int totalSteps, std::string message)
It initializes a ProgressTimer.
std::string getMessage()
Get the information about the evolution of the process.
std::string Convert2String(boost::int16_t value)
It converts a short integer value to a string.
~ProgressTimer()
Destructor.
void setTotalSteps(int totalSteps)
Set the total steps.
The ProgressTimer is a utility class that can be used to calculate the estimated time to finish a tas...
int m_totalSteps
Total steps.