X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/931c993776aa8bc41f11d6d676a894324d73a1a3..1a6e4ad36f2b712a042007efb5184e2f34958595:/progress.cpp?ds=inline diff --git a/progress.cpp b/progress.cpp index 31d4859..57d1bc3 100644 --- a/progress.cpp +++ b/progress.cpp @@ -16,3 +16,8 @@ bool progress::madeStep(int realStep) else return false; } + +double progress::done() +{ + return (double)laststep/progsteps; +}