| 7 | #include <sys/time.h> |
| 8 | |
| 9 | struct timeabs time_now(void) |
| 10 | { |
| 11 | struct timeval now; |
| 12 | struct timeabs ret; |
| 13 | gettimeofday(&now, NULL); |
| 14 | ret.ts.tv_sec = now.tv_sec; |
| 15 | ret.ts.tv_nsec = now.tv_usec * 1000; |
| 16 | return TIMEABS_CHECK(ret); |
| 17 | } |
| 18 | #else |
| 19 | #include <time.h> |
| 20 | struct timeabs time_now(void) |
no outgoing calls