HCoop
/
hcoop
/
zz_old
/
debian
/
djbdns.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
release
[hcoop/zz_old/debian/djbdns.git]
/
taia_now.c
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
}