diff --git a/aes-32bit/aes.cpp b/aes-32bit/aes.cpp index acd513a..7f00c1f 100644 --- a/aes-32bit/aes.cpp +++ b/aes-32bit/aes.cpp @@ -206,7 +206,8 @@ int main(int argc, char* argv[]) } const auto end{std::chrono::steady_clock::now()}; const std::chrono::duration elapsed_seconds{end - start}; + auto milliseconds = std::chrono::duration_cast(elapsed_seconds).count(); 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 }