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