回複:如何計算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.