X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/931c993776aa8bc41f11d6d676a894324d73a1a3..7d78a412f4cde48ce35f8f4cbe77c2a333484fa8:/progress.cpp 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; +}