This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] MI: new timing command
> > Also note that this line:
> >
> > > + tv->wallclock.utv_sec = usec - 1000000*tv->wallclock.tv_sec;
> >
> > has a typo: it uses utv_sec instead of tv_usec.
>
> I don't think so as get_run_time returns the time in microseconds e.g
>
> usec = 1234567
>
> tv->wallclock.tv_sec = 1234567/1000000 = 1
> tv->wallclock.utv_sec = 1234567 - 1000000 = 234567
Sorry, yes you're right. I thought you were referring to my arithmetic.
--
Nick http://www.inet.net.nz/~nickrob