1999-03-02  Ulrich Drepper  <drepper@cygnus.com>

	* manual/time.texi (High Resolution Timer): Correct computation in
	example.  Reported by jjf@devel.cemsys.com.
This commit is contained in:
Ulrich Drepper 1999-03-02 21:18:07 +00:00
parent d77fad15db
commit 9af2e76f29
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
1999-03-02 Ulrich Drepper <drepper@cygnus.com>
* manual/time.texi (High Resolution Timer): Correct computation in
example. Reported by jjf@devel.cemsys.com.
1999-03-02 Philip Blundell <pb@nexus.co.uk>
* sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): DT_PLTGOT

View File

@ -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;
@}