要用time.h计时可是时间太短,输出的是0s,怎么办?有没有可以计时小数的方法
clock_t start_t, end_t; start_t = clock(); fun(); end_t = clock(); double total_t = (double)(end_t - start_t) / CLOCKS_PER_SEC; //时间间隔