[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: timersub is incorrect for small values
From: |
jur |
Subject: |
Re: timersub is incorrect for small values |
Date: |
Sat, 29 Dec 2001 00:02:01 +0100 (CET) |
On Fri, 28 Dec 2001, Andreas Jaeger wrote:
> address@hidden writes:
>
> > timersub is incorrect for small values, defined in sys/time.h
> >
> > i.e. 0.001000 - 0.001800 give -1.999200, which is not what my
> > calculator sais.
>
> But 0.0010 is greater than 0.0018 - timersub expects that the
> arguments are ordered.
>
Yep, I figured that out already. But I couldn't find it in any man page at
first so I got a little bit stuck with it.
Maybe an idea to include the ordering comment in the header file?
Jurriaan