C++ Clock函数调用 程序运行时间检测 程序运行时间检测 #include <time.h> int main(){ ... printf("Time used = %.2f\n", clock() / CLOCKS_PER_SEC); return 0; }