0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-27 00:31:02 +08:00

fixed the build when using Chrono clock

Fixes #128
This commit is contained in:
Matt Chiasson 2018-09-18 14:19:38 -04:00 committed by GitHub
parent c352f34c69
commit cd84bb34ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -254,7 +254,7 @@ profiler::ThreadGuard::~ThreadGuard()
#if defined(EASY_CHRONO_CLOCK) #if defined(EASY_CHRONO_CLOCK)
static EASY_CONSTEXPR_FCN int64_t calculate_cpu_frequency() 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) #elif defined(_WIN32)
static int64_t calculate_cpu_frequency() static int64_t calculate_cpu_frequency()