X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=time.c;h=6042c487f57db31c3741e02a4e0ed600cba87a43;hp=040053d26d34832d59da217aa95bdccd27909437;hb=cb4f8bc9718816110bef77ed1ba124d723c253b5;hpb=712cb2cb6155ba39fe607980e419ec862bfe1d91 diff --git a/time.c b/time.c index 040053d2..6042c487 100644 --- a/time.c +++ b/time.c @@ -31,18 +31,6 @@ void ms2tv(long unsigned n, struct timeval *tv) tv->tv_usec = (n % 1000) * 1000; } -/** - * Convert a double to a struct timeval. - * - * \param x The value to convert. - * \param tv Result pointer. - */ -void d2tv(double x, struct timeval *tv) -{ - tv->tv_sec = x; - tv->tv_usec = (x - (double)tv->tv_sec) * 1000.0 * 1000.0 + 0.5; -} - /** * Compute the difference of two time values. *