Small part of a program : d and c versions performances diff.

Ali Çehreli via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jul 9 11:18:43 PDT 2014


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



More information about the Digitalmars-d-learn mailing list