From cd84bb34ce9a20f2618199b433b28ba0019c820d Mon Sep 17 00:00:00 2001 From: Matt Chiasson Date: Tue, 18 Sep 2018 14:19:38 -0400 Subject: [PATCH] fixed the build when using Chrono clock Fixes #128 --- easy_profiler_core/profile_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easy_profiler_core/profile_manager.cpp b/easy_profiler_core/profile_manager.cpp index 996ad07..589b4d5 100644 --- a/easy_profiler_core/profile_manager.cpp +++ b/easy_profiler_core/profile_manager.cpp @@ -254,7 +254,7 @@ profiler::ThreadGuard::~ThreadGuard() #if defined(EASY_CHRONO_CLOCK) static EASY_CONSTEXPR_FCN int64_t calculate_cpu_frequency() { - return EASY_CHRONO_CLOCK::period::den / EASY_CHRONO_CLOCK::period::num + return EASY_CHRONO_CLOCK::period::den / EASY_CHRONO_CLOCK::period::num; } #elif defined(_WIN32) static int64_t calculate_cpu_frequency()