66 #define PROGRESS_STATUS_BAR_LENGTH 46
74 void DoProgress(
string label,
unsigned int step,
unsigned int total,
unsigned int interval ){
78 if ( step % interval != 0 && step < total)
return;
82 float ratio = step/(float)total;
88 printf(
"%s %3d%% [", label.c_str(), (int)(ratio*100) );
92 for (
int x=0; x<c; x++) printf(
"=");
106 printf(
"\033[F\033[J");
112 printf(
"\033[F\033[J");
126 void DoProgress(
string label,
unsigned int step,
unsigned int total ){
134 #ifdef PROGRESS_STATUS_BAR_LENGTH
136 #undef PROGRESS_STATUS_BAR_LENGTH
Verbosity getVerbosity()
Return current verbosity level.
Main Sospin header file. Includes C++ macros, to simplify expression writing, B operator, Verbosity level and memory usage.
void DoProgress(string label, unsigned int step, unsigned int total)
#define PROGRESS_STATUS_BAR_LENGTH
Specific functions progress status bar.