Print time in miliseconds
This commit is contained in:
parent
bbfbbc4908
commit
ba48c564ce
1 changed files with 2 additions and 1 deletions
|
@ -206,7 +206,8 @@ int main(int argc, char* argv[])
|
||||||
}
|
}
|
||||||
const auto end{std::chrono::steady_clock::now()};
|
const auto end{std::chrono::steady_clock::now()};
|
||||||
const std::chrono::duration<double> elapsed_seconds{end - start};
|
const std::chrono::duration<double> elapsed_seconds{end - start};
|
||||||
|
auto milliseconds = std::chrono::duration_cast<std::chrono::milliseconds>(elapsed_seconds).count();
|
||||||
|
|
||||||
std::cout << "AES (" << cycles << " runs)\nElapsed time: ";
|
std::cout << "AES (" << cycles << " runs)\nElapsed time: ";
|
||||||
std::cout << elapsed_seconds.count() << "s\n"; // Before C++20
|
std::cout << milliseconds << "ms\n"; // Before C++20
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue