- Renamed GetCycleTimeFrequency to GetCycleTimeFrequencyMHz, to make the unit more obvious at call sites. - Made call thread-safe, by initializing a function-static variable using an immediately-invoked lambda. - Made function public in ProcInfo.h. - Implemented function on non-Windows platforms, they always return 0 -- These could be changed if we eventually get access to cycle counts there. Differential Revision: https://phabricator.services.mozilla.com/D132764
7.9 KiB
7.9 KiB