32 m_CurrentNbStars = -1;
37 const std::string& comment)
65 int progressPercent =
static_cast<int>(m_Process->GetProgress() * 100);
66 int nbStars =
static_cast<int>(m_Process->GetProgress() * m_StarsCount);
67 int nbBlanks = m_StarsCount - nbStars;
74 if (nbStars > m_StarsCount)
76 nbStars = m_StarsCount;
79 if (progressPercent > 100)
81 progressPercent = 100;
84 if (nbStars > m_CurrentNbStars)
86 std::string stars(nbStars,
'*');
87 std::string
blanks(nbBlanks,
' ');
92 << progressPercent <<
"% [" << stars << blanks <<
"]"
96 m_CurrentNbStars = nbStars;
114 std::ostringstream elapsedTime;
115 elapsedTime.precision(1);
116 elapsedTime << m_TimeProbe.GetMeanTime();