double Time = (double)cvGetTickCount();
// 算法过程
Time = (double)cvGetTickCount() - Time ;
printf( "run time = %gms\n", Time /(cvGetTickFrequency()*1000) );//毫秒
printf( "run time = %gs\n", Time /(cvGetTickFrequency()*1000000) );//秒
double Time = (double)cvGetTickCount();
// 算法过程
Time = (double)cvGetTickCount() - Time ;
printf( "run time = %gms\n", Time /(cvGetTickFrequency()*1000) );//毫秒
printf( "run time = %gs\n", Time /(cvGetTickFrequency()*1000000) );//秒