1
// Copyright (C) 2003-2008 Anders Logg and Jim Tilander.
2
// Licensed under the GNU LGPL Version 2.1.
4
// First added: 2003-03-14
5
// Last changed: 2008-03-06
13
#include <dolfin/common/types.h>
18
/// This class provides a simple way to create and update progress
19
/// bars during a computation. A progress bar may be used either
20
/// in an iteration with a known number of steps:
22
/// Progress p("Iterating...", n);
23
/// for (int i = 0; i < n; i++)
29
/// or in an iteration with an unknown number of steps:
31
/// Progress p("Iterating...");
42
/// Create progress bar with a known number of steps
43
Progress(std::string title, unsigned int n);
45
/// Create progress bar with an unknown number of steps
46
Progress(std::string title);
51
/// Set current position
52
void operator=(real p);
54
/// Increment progress
62
// Title of progress bar
71
// Minimum progress increment
74
// Minimum time increment