用C写的计算运行时间
#include <stdio.h> #include <stdlib.h> #include <time.h> int main( void ) { long i = 10000000L; clock_t start, finish; double duration; printf( "Time to do %ld empty loops is ", i ); start = clock(); while( i-- ) ; finish = clock(); duration = (double)(finish - start) / CLOCKS_PER_SEC; printf( "%f seconds", duration ); system("pause"); }
从事图像处理、机器学习、图像识别及人机交互等领域研究及开发,承接各类人工智能、图像处理,视频处理,图像识别算法项目,请联系761551935