#include <stdio.h>
#include <sys/time.h>
/**********************
*name:gettimeofday.c
*author:QG
*time:2015-05-13
*description:
***********************/
int main()
{
//struct timeval *tv;
struct timeval tv;
int ret;
ret = gettimeofday(&tv,NULL);
//if(ret == 0)
//{
printf("get the gettimeofday :seconds: %d,microseconds :%d\n",tv.tv_sec,tv.tv_usec);
//}
return 0;
}
&spm=1001.2101.3001.5002&articleId=46583583&d=1&t=3&u=159eb04a92cb40168056b83522ff98dc)

被折叠的 条评论
为什么被折叠?



