Small part of a program : d and c versions performances diff.
Larry via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Jul 9 12:47:50 PDT 2014
On Wednesday, 9 July 2014 at 18:18:43 UTC, Ali Çehreli wrote:
> On 07/09/2014 03:57 AM, Larry wrote:
>
> > struct timeval s,e;
> [...]
> > gettimeofday(&e,NULL);
> >
> > printf("so ? %d %lu %d %d %d",g,e.tv_usec - s.tv_usec,
> > arr[4],arr[9],pol);
>
> Changing the topic a little, the calculation above ignores the
> tv_sec members of s and e.
>
> Ali
Absolutely Ali because I know it is under the sec range. I made
some test before submitting it :)
But you are absolutely right Ali the mileage will vary in a
completely different scenario.
More information about the Digitalmars-d-learn
mailing list