G+Smo  25.01.0
Geometry + Simulation Modules
 
Loading...
Searching...
No Matches
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.