Subject: Re: [PATCH 2/4 -rev1] Add new timeval_to_sec function

From: Oliver Hartkopp <[email-masked]>
Date: Thu, 26 Jul 2007 08:17:20 +0200

Eric Dumazet wrote:
> Varun Chandramohan a écrit :
>>
>> +    return (tv->tv_sec + (tv->tv_usec + 999999)/1000000);
>
> return tv->tv_sec + (tv->tv_usec ? 1 : 0);
>
> is much faster

It additionally wins the design award in opposite to my suggestion ;-)
Thanks!