projects
/
crypto_lab3.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
First part: RSA CRT versus RSA std.
[crypto_lab3.git]
/
src
/
Utils.cpp
diff --git
a/src/Utils.cpp
b/src/Utils.cpp
index
b60be50
..
0bae372
100644
(file)
--- a/
src/Utils.cpp
+++ b/
src/Utils.cpp
@@
-17,6
+17,11
@@
int Timer::ms() const
return chrono::duration_cast<chrono::milliseconds>(chrono::high_resolution_clock::now() - this->time).count();
}
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";
ostream& operator<<(ostream& os, const Timer& t)
{
os << t.ms() << " ms";