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