Occurrences of gettimeofday() in src/bin

bin/csh/proc.c

Uses gettimeofday to retrieve the seconds and usec. It then uses these as part of the print rusage (prusage) routine, which displays the user CPU time used, system CPU time used, and the elapsed (wall-clock) time.

bin/csh/time.c

gettimeofday() is used here again to determine the amount of time it has taken to execute a command. The delta is then used in the builtin csh 'time' command.

bin/date/date.1
This manpage documents date(1)'s use of gettimeofday(2) to set daylight savings time.

bin/dd/dd.c

gettimeofday(2) is used to get the time in seconds and usecs. These are used to timestamp the start of a i/o operation.

bin/dd/misc.c

Gets the time in seconds and usec. gettimeofday(2) is used to timestamp the end of the i/o operation.