windows与linux一些差异的小记
1.关于TIMEVAL tv 或 timeval tv
在 windows中如果要使用这个结构体,就需要包含#include <winsock.h> 或 #include <sys/time.h>
而在linux中需要包含#include<sys/time.h>
1.关于TIMEVAL tv 或 timeval tv
在 windows中如果要使用这个结构体,就需要包含#include <winsock.h> 或 #include <sys/time.h>
而在linux中需要包含#include<sys/time.h>