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 =
相关文章
相关标签/搜索