- if (pp->p_flags & (PTIME|PPTIME) || adrof("time")) {
- time_t oldcutimes, oldcstimes;
- oldcutimes = shtimes.tms_cutime;
- oldcstimes = shtimes.tms_cstime;
- gettimeofday(&pp->p_etime, (struct timezone *)0);
- times(&shtimes);
- pp->p_utime = shtimes.tms_cutime - oldcutimes;
- pp->p_stime = shtimes.tms_cstime - oldcstimes;
- } else
- times(&shtimes);
+ if (pp->p_flags & (PTIME|PPTIME) || adrof("time"))
+ (void) gettimeofday(&pp->p_etime, (struct timezone *)0);