From 6a14ac2ef096d3a8e006e8231746a27a1b944e06 Mon Sep 17 00:00:00 2001 From: Jared T Date: Fri, 25 Aug 2023 11:31:23 -0700 Subject: [PATCH] Simplify time output at the end of the compilation. This small update is mostly so I can test that the build pipeline is still working ~1.5 years after I stopped working on this project. --- Source/main.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Source/main.cpp b/Source/main.cpp index 9729409..729ae0e 100644 --- a/Source/main.cpp +++ b/Source/main.cpp @@ -94,11 +94,7 @@ int main(int argc, char const* argv[]) auto endTime = std::chrono::steady_clock::now(); std::chrono::duration elapsedSeconds = endTime - startTime; auto ms = (elapsedSeconds * 1000.0).count(); - if (ms >= 1.0) { - std::cout << "Took " << static_cast(ms) << "ms" << std::endl; - } else { - // This is very optimistic for a file reading application... probably not needed. - std::cout << "Took " << static_cast(ms*1000.0) << "us" << std::endl; - } + std::cout << "Took " << static_cast(ms) << "ms" << std::endl; + return 0; -} \ No newline at end of file +}