time: use timespec instead of timeval.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 10 Sep 2012 06:14:52 +0000 (15:44 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 10 Sep 2012 06:14:52 +0000 (15:44 +0930)
commit2012d45e273c3016dbd09b2606efc9ffab07c57f
treedcd5dd068cb18366dada551484543996af1cefd5
parent9d965629977108b7dcce86f9c248be47b5928bc9
time: use timespec instead of timeval.

It's a superset of struct timeval.  It's also a bit trickier, since we
need -lrt on Linux to use clock_gettime(), and also we can't just cram the
time into a u64 for multiply and divide.
ccan/time/_info
ccan/time/test/run.c
ccan/time/time.c
ccan/time/time.h