mirror of
https://github.com/yse/easy_profiler.git
synced 2024-12-25 23:40:51 +08:00
fix: ticks2ns
m_cpuFrequency is per millisecond in #else.
This commit is contained in:
parent
3104dd4ae7
commit
33c46b39fe
@ -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<profiler::timestamp_t>(ticks / m_cpuFrequency.load(std::memory_order_acquire));
|
||||
return static_cast<profiler::timestamp_t>(ticks * 1000000LL / m_cpuFrequency.load(std::memory_order_acquire));
|
||||
}
|
||||
|
||||
profiler::timestamp_t ProfileManager::ticks2us(profiler::timestamp_t ticks) const
|
||||
|
Loading…
x
Reference in New Issue
Block a user