This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM6446 如何测出准确的时间,我的是达芬奇系列的



 clock_t start;
   clock_t end;
   clock_t sub_time,over_handle_time;
   int x=0;
   double  rate;
   ReadImage(dbImage,"1100.bmp",IMAGEWIDTH,IMAGEHEIGHT);
   start=clock();
   end=clock();
   over_handle_time=end-start;
   start=clock();
   x=0;
   //SobelCalculate(dbImage,dbTargetImage,IMAGEWIDTH,IMAGEHEIGHT);

   end=clock();
   sub_time=end-start-over_handle_time;
   rate=(sub_time*1.0)/(594000000*1.0);
   printf("rate=%f\n",rate);
  // Reverse(IMAGEWIDTH,IMAGEHEIGHT);

这是我利用那个clock函数测试的时间,发现这个时间好长,而且DM6446的主频是594000000,然后不知道这么写对不对,听同事说,TI在这方面做的很好,呵呵,所以想麻烦一下,还有一个问题就是关于那个CMD文件怎么写,我把算法都写好了