You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
249 B
C
13 lines
249 B
C
22 years ago
|
#include <sys/types.h>
|
||
|
#include <sys/time.h>
|
||
|
#include "taia.h"
|
||
|
|
||
|
void taia_now(struct taia *t)
|
||
|
{
|
||
|
struct timeval now;
|
||
|
gettimeofday(&now,(struct timezone *) 0);
|
||
|
tai_unix(&t->sec,now.tv_sec);
|
||
|
t->nano = 1000 * now.tv_usec + 500;
|
||
|
t->atto = 0;
|
||
|
}
|