0
在Windows中,我用QueryPerformanceCounter
來測量代碼的性能,以微秒爲單位。我想在Firemonkey中的所有平臺上都這樣做。我發現one solution,但它只適用於C++。等效於QueryPerformanceCounter的多平臺?
什麼是所有平臺的等價物?
在Windows中,我用QueryPerformanceCounter
來測量代碼的性能,以微秒爲單位。我想在Firemonkey中的所有平臺上都這樣做。我發現one solution,但它只適用於C++。等效於QueryPerformanceCounter的多平臺?
什麼是所有平臺的等價物?
使用TStopwatch
從System.Diagnostics
。
QueryPerformanceCounter
實現。mach_absolute_time
實施。clock_gettime
。