From: Ulrich Drepper Date: Tue, 2 Mar 1999 21:18:07 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/libc-as-990315~38 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9af2e76f296235601789d826a4a65ce0ec4eda9e;p=platform%2Fupstream%2Fglibc.git Update. 1999-03-02 Ulrich Drepper * manual/time.texi (High Resolution Timer): Correct computation in example. Reported by jjf@devel.cemsys.com. --- diff --git a/ChangeLog b/ChangeLog index c3773b0..a2791b2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +1999-03-02 Ulrich Drepper + + * manual/time.texi (High Resolution Timer): Correct computation in + example. Reported by jjf@devel.cemsys.com. + 1999-03-02 Philip Blundell * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): DT_PLTGOT diff --git a/manual/time.texi b/manual/time.texi index 57fbdf2..463814d 100644 --- a/manual/time.texi +++ b/manual/time.texi @@ -354,7 +354,7 @@ timeval_subtract (result, x, y) y->tv_sec += nsec; @} if (x->tv_usec - y->tv_usec > 1000000) @{ - int nsec = (y->tv_usec - x->tv_usec) / 1000000; + int nsec = (x->tv_usec - y->tv_usec) / 1000000; y->tv_usec += 1000000 * nsec; y->tv_sec -= nsec; @}