Windows和Linux下取得系統時間(毫秒級)

Linux:get struct timeval tv; gettimeofday(&tv, NULL); printf("sec = %d, ms = %d\n", tv.tv_sec, tv.tv_usec / 1000); it Windows:im #include <sys/timeb.h> time struct timeb tp; ftime(&tp); printf("sec =
相關文章
相關標籤/搜索