Skip to content

Instantly share code, notes, and snippets.

@chrisbrasington
Created August 26, 2016 19:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisbrasington/6586bea665306bddd537c4059a1aa4c3 to your computer and use it in GitHub Desktop.
Save chrisbrasington/6586bea665306bddd537c4059a1aa4c3 to your computer and use it in GitHub Desktop.
// create a new progress meter
ProgressMeter pm = new ProgressMeter();
// set text for meter
pm.Start("Doing task..");
// set upper limit, what is considered 100% full
pm.SetLimit(Count);
for (int i = 0; i < Count; i++)
{
// step
pm.MeterProgress();
}
// end
pm.Stop();
pm.Dispose();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment