5 struct timeval starttime;
6 struct timeval currenttime;
9 - tz.tz_minuteswest =0;
11 - gettimeofday(&starttime,&tz);
12 + gettimeofday(&starttime,NULL);
15 while (fgets(aLine, sizeof(aLine)-1, stdin)){
19 getrusage(RUSAGE_SELF,&myusage);
20 - gettimeofday(¤ttime,&tz);
21 + gettimeofday(¤ttime,NULL);
22 printf("OK u:%1.2f s:%1.2f r:%1.2f\n",
23 (double)myusage.ru_utime.tv_sec+
24 (double)myusage.ru_utime.tv_usec/1000000.0,