10 lines
185 B
C
10 lines
185 B
C
#include <sys/time.h>
|
|
#include <stdio.h>
|
|
|
|
int main() {
|
|
struct timeval tv;
|
|
gettimeofday(&tv, NULL);
|
|
printf("sec = %lu, usec = %lu\n", tv.tv_sec, tv.tv_usec);
|
|
return 0;
|
|
}
|