]> git.treefish.org Git - phys/latlib.git/commitdiff
...
authorAlexander B. Schmidt <alex@treefish.org>
Sat, 3 Nov 2012 21:42:19 +0000 (22:42 +0100)
committerAlexander B. Schmidt <alex@treefish.org>
Sat, 3 Nov 2012 21:42:19 +0000 (22:42 +0100)
progress.cpp
progress.h

index 31d4859fad7ad9b628e67401b1862058e05a4c36..57d1bc36475f54bfe6ea4e1bd746f0ba63e09de7 100644 (file)
@@ -16,3 +16,8 @@ bool progress::madeStep(int realStep)
   else
     return false;
 }
+
+double progress::done()
+{
+  return (double)laststep/progsteps;
+}
index 44b6f94a0a1193a4f6ae40765aaaa52a1c6a0fb9..da6854e71a63e31ddfe609fce2f47a924e87c53e 100644 (file)
@@ -6,6 +6,7 @@ class progress
  public:
   progress(int a_realsteps, int a_progsteps=100);
   bool madeStep( int realStep );
+  double done();
   
  private:
   int realsteps;