카테고리 없음
time.h
sunshout
2014. 11. 13. 21:55
#include <stdio.h>
#include <sys/time.h>
int main()
{
struct timeval curr;
gettimeofday(&curr, NULL);
printf("tv_sec:%lu\n", curr.tv_sec);
printf("tv_usec(microseconds 1/1,000,000):%lu\n", curr.tv_usec);
return 0;
}
728x90