Add measures and tests.
[crypto_lab3.git] / src / Utils.cpp
index b60be50..2de443d 100644 (file)
@@ -3,11 +3,6 @@
 #include <iostream>
 using namespace std;
 
-void Utils::print(string name, mpz_class value)
-{
-   cout << name << ": " << value << endl;
-}
-
 Timer::Timer() :
    time(chrono::high_resolution_clock::now())
 {}
@@ -17,6 +12,11 @@ int Timer::ms() const
    return chrono::duration_cast<chrono::milliseconds>(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";