文章详情
时间:2007-01-09 来源:白石
//打印程序执行时间 void secondpass() { static long start=0; time_t timer; if (start == 0) { timer=time(NULL); start=(long)timer; } printf("second:%ld \n" ,(long)(time(NULL))-start); }
只能精确到秒
Unity Connect
青橙记录本
脑洞惊魂夜
1970-01-01