回复:如何计算c程序的cputime?

来源: 2005-11-15 19:16:43 [旧帖] [给我悄悄话] 本文已被阅读:

(double)(time2-time1)/CLOCKS_PER_SEC;

It's not real CPU time but actual execution time. Actual CPU time calculation is way too complicated and platform/OS dependent.