📜  运行时 - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:43.234000             🧑  作者: Mango

代码示例1
#include 
clock_t begin = clock();

/* here, do your time-consuming job */

clock_t end = clock();
double time_spent = (double)(end - begin) / CLOCKS_PER_SEC;
printf("%f\n", time_spent);