时间戳

include <time.h>

time(&start); //1970年1月1日0时0分0秒至今的秒数,放入start中
...
time(&end);
cout << "using" <<end - start << endl; //输出了中间...程序段所用的时间

posted @ 2026-05-09 15:51  阳冲亦右  阅读(9)  评论(0)    收藏  举报