回複:如何計算c程序的cputime?

(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.

所有跟帖: 

算出來是負數什麽意思呢? -19879- 給 19879 發送悄悄話 (0 bytes) () 11/16/2005 postreply 10:36:09

請您先登陸,再發跟帖!