Eric Dumazet wrote:
> Varun Chandramohan a écrit :
>>
>> +return (tv->tv_sec + (tv->tv_usec + 99)/100);
>
> return tv->tv_sec + (tv->tv_usec ? 1 : 0);
>
> is much faster
It additionally wins the design award in opposite to my suggestion ;-)
Thanks!
-
To unsubscribe from this list: se
Varun Chandramohan a écrit :
A new function for converting timeval to time_t is added in time.h. Its a
common function used in different
places. The timeout is now rounded up as per the suggestion.
Signed-off-by: Varun Chandramohan <[EMAIL PROTECTED]>
---
include/linux/time.h | 11 ++
A new function for converting timeval to time_t is added in time.h. Its a
common function used in different
places. The timeout is now rounded up as per the suggestion.
Signed-off-by: Varun Chandramohan <[EMAIL PROTECTED]>
---
include/linux/time.h | 11 +++
1 files changed, 11 insertio