Add measures and tests.
[crypto_lab3.git] / src / Utils.h
1 #ifndef UTILS_H
2 #define UTILS_H
3
4 #include <chrono>
5 #include <string>
6 #include <iostream>
7
8 #include <gmpxx.h>
9
10 typedef unsigned int uint;
11
12 class Timer
13 {
14 public:
15 Timer();
16 int ms() const;
17 void reset();
18 friend std::ostream& operator<<(std::ostream& os, const Timer& t);
19
20 private:
21 std::chrono::time_point<std::chrono::high_resolution_clock> time;
22 };
23
24 std::ostream& operator<<(std::ostream& os, const Timer& t);
25
26 #endif