Files
tubestation/toolkit/components/processtools/ProcInfo.h
Gerald Squelart 83df24cf25 Bug 1741690 - Expose GetCycleTimeFrequencyMHz() - r=florian
- 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
2021-12-06 23:36:33 +00:00

7.9 KiB