diff --git a/easy_profiler_core/profile_manager.cpp b/easy_profiler_core/profile_manager.cpp index de70404..12fe96d 100644 --- a/easy_profiler_core/profile_manager.cpp +++ b/easy_profiler_core/profile_manager.cpp @@ -1300,7 +1300,7 @@ profiler::timestamp_t ProfileManager::ticks2us(profiler::timestamp_t ticks) cons #else profiler::timestamp_t ProfileManager::ticks2ns(profiler::timestamp_t ticks) const { - return static_cast(ticks / m_cpuFrequency.load(std::memory_order_acquire)); + return static_cast(ticks * 1000000LL / m_cpuFrequency.load(std::memory_order_acquire)); } profiler::timestamp_t ProfileManager::ticks2us(profiler::timestamp_t ticks) const