X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=time.c;h=6bb9a50f5b32f7441943817dc22f868d0f0131cd;hp=c405351a96f978c39b18ec0466a65fad012aff26;hb=ee3dfa7ab8a74124448649386e877775cd8625b6;hpb=a731a7c6e78fb137268b42062d9fb08b4e49a2c8;ds=sidebyside diff --git a/time.c b/time.c index c405351a..6bb9a50f 100644 --- a/time.c +++ b/time.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2014 Andre Noll + * Copyright (C) 2005 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -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. *