dc0d77d7 CE |
1 | #include <sys/types.h> |
2 | #include <sys/time.h> |
3 | #include "taia.h" |
4 | |
5 | void taia_now(struct taia *t) |
6 | { |
7 | struct timeval now; |
8 | gettimeofday(&now,(struct timezone *) 0); |
9 | tai_unix(&t->sec,now.tv_sec); |
10 | t->nano = 1000 * now.tv_usec + 500; |
11 | t->atto = 0; |
12 | } |