X-Git-Url: http://git.euphorik.ch/?p=crypto_lab3.git;a=blobdiff_plain;f=src%2FUtils.cpp;h=0bae3725c5263027aad7f1eac6c92353be0d3810;hp=b60be5094f1ae04f544db0531c228d53182e0015;hb=91989c2627abc2cdf511f17169e4f862dc55e838;hpb=7975d02c6c1ee679a236087e86955c086f1a9a8e diff --git a/src/Utils.cpp b/src/Utils.cpp index b60be50..0bae372 100644 --- a/src/Utils.cpp +++ b/src/Utils.cpp @@ -17,6 +17,11 @@ int Timer::ms() const return chrono::duration_cast(chrono::high_resolution_clock::now() - this->time).count(); } +void Timer::reset() +{ + this->time = chrono::high_resolution_clock::now(); +} + ostream& operator<<(ostream& os, const Timer& t) { os << t.ms() << " ms";