4 * $DragonFly: src/test/sysperf/syscall5.c,v 1.1 2005/03/28 03:13:24 dillon Exp $
10 main(int ac, char **av)
17 printf("timing standard gettimeofday() syscall\n");
20 while (stop_timing(0, NULL) == 0) {
21 for (j = 0; j < 100; ++j)
22 gettimeofday(&tv, NULL);
27 for (count = 0; count < max; count += 100) {
28 for (j = 0; j < 100; ++j)
29 gettimeofday(&tv, NULL);
31 stop_timing(count, "gettimeofday()");