G+Smo  23.12.0
Geometry + Simulation Modules
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gsProgressBar Class Reference

Detailed Description

Simple progress bar class.

Prints the progress bar on a single console line, avoids clattering the console window and looks cool. Useful for programms with duration known in advance, e.g. transient simulations with a fixed number of time steps. Other console output will mess up the progress bar.

Public Member Functions

void display (double progress)
 display the progress from 0 to 1
 
void display (index_t progress, index_t total)
 display the progress from 0 to 1
 
 gsProgressBar (index_t width=25)
 Constructor. Width is a number of symbols the progress bar spans.