看板 [ Linux ]
討論串[問題] 如何在linux上寫執行時間的程式?
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 2→)留言2則,0人參與, 最新作者TwoDemon (飛天)時間14年前 (2011/09/09 17:43), 編輯資訊
0
0
0
內容預覽:
直接寫給你吧:. #include <stdio.h>. #include <time.h>. main(argc, argv). int argc;. char *argv[];. {. char Transdate[20+1];. long t;. struct tm *tp;. time(&t
(還有171個字)

推噓0(0推 0噓 2→)留言2則,0人參與, 最新作者WolfLord (呆呆小狼)時間14年前 (2011/09/09 03:01), 編輯資訊
0
0
0
內容預覽:
#include <stdio.h>. #include <stdlib.h>. #include <time.h>. #ifdef _WIN32_. #include <windows.h>. #else. #include <unistd.h>. #define Sleep(a) usleep(
(還有384個字)

推噓6(6推 0噓 13→)留言19則,0人參與, 最新作者spiderman007 (千里之外)時間14年前 (2011/09/08 23:56), 編輯資訊
0
0
0
內容預覽:
在windows上寫c如下. #include <windows.h>. #include <stdio.h>. #include <stdlib.h>. #include <time.h>. int main(void){. time_t t1,t2; // typedef time_t long
(還有51個字)
首頁
上一頁
1
下一頁
尾頁