C++獲取當前時間

1. 包含頭文件html #include <stdio.h> #include <sys/timeb.h> 2. 代碼 timeb t1; ftime(&t1); cout << t1.time * 1000 + t1.millitm; 3. 另外一種(64位win不含該頭文件但上一種方法能夠) #include <stdio.h> #include <sys/time.h> 4. 代
相關文章
相關標籤/搜索