#include<sys/time.h>struct timeval tv;
if(gettimeofday(&tv,NULL)!=0){return 0;
}
long sec = tv.tv_sec * 1000 + tv.tv_usec / 1000;
#include<sys/time.h>struct timeval tv;
if(gettimeofday(&tv,NULL)!=0){return 0;
}
long sec = tv.tv_sec * 1000 + tv.tv_usec / 1000;