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