[問題] 執行時印出時間
開發平台(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
05/12 04:20, 4F