[問題] 執行時印出時間

看板C_and_CPP作者 (電資雙雄)時間10年前 (2015/05/11 12:09), 編輯推噓0(004)
留言4則, 4人參與, 最新討論串1/1
開發平台(Platform): (Ex: VC++, GCC, Linux, ...) G++ 4.4.3 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) NO 問題(Question): 執行時過程中印出時間 程式碼(Code):(請善用置底文網頁, 記得排版) int main() { while(1) { std::cout << "RAT1 is startting to receive" <<std::endl; do { ... //gettimeofday(&tv,&tz); std::cout<<the end of sent; } while(Gotonextsource!=NULL) 補充說明(Supplement): 如何印出 執行 std::cout << "RAT1 is startting to receive" <<std::endl; 這行時 的系統時間,因為我想要做每次執行這行系統時間的紀錄 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.117.164.19 ※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1431346152.A.B0F.html

05/11 21:00, , 1F
板上 /時間,最近一篇?
05/11 21:00, 1F

05/11 21:07, , 2F
那篇是紀錄 當下你按下啟動程式的系統時間而已
05/11 21:07, 2F

05/12 01:04, , 3F
除了水晶球之外,要不要翻譯蒟蒻呢
05/12 01:04, 3F

05/12 04:20, , 4F
ComputerGod怎麼還會問這種問題
05/12 04:20, 4F
文章代碼(AID): #1LK9leiF (C_and_CPP)