#include <stdio.h>#include <time.h> int main(void){ int i; long cpu_time; /* 負荷を掛ける処理(適当です) */ for(i=0; i<10000; i++){ printf("計測中...\n"); } /* CPU時間をチェック */ cpu_time = clock(); printf("CPU時間: %d\n", cpu_time); return 0;}