Skip to content

Commit

Permalink
fix tinytimer & revert to c++17
Browse files Browse the repository at this point in the history
c++20 gh actions bug: github.com/actions/runner-images/issues/8659
  • Loading branch information
samayala22 committed Feb 2, 2024
1 parent 103a9ed commit 0ff8fd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion headeronly/tinytimer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Timer {

~Timer() {
const auto m_end = std::chrono::high_resolution_clock::now();
const auto duration = std::chrono::duration_cast<std::chrono::microseconds>(m_end - m_start).count();
const auto duration = static_cast<long long>(std::chrono::duration_cast<std::chrono::microseconds>(m_end - m_start).count());
std::printf("%s: ", m_name);

if (duration > us_in_s) {
Expand Down
2 changes: 1 addition & 1 deletion xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ set_policy("run.autobuild", true)
-- set_policy("build.optimization.lto")

set_warnings("all")
set_languages("c++20", "c99")
set_languages("c++17", "c99")
set_runtimes("MD") -- msvc runtime library (MD/MT/MDd/MTd)

-- TBB macro for profiling parallel objects
Expand Down

0 comments on commit 0ff8fd2

Please sign in to comment.