这是一个本人学习 csapp 的 learning 库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
401 B

2 years ago
  1. /*
  2. * Function timers
  3. */
  4. typedef void (*ftimer_test_funct)(void *);
  5. /* Estimate the running time of f(argp) using the Unix interval timer.
  6. Return the average of n runs */
  7. double ftimer_itimer(ftimer_test_funct f, void *argp, int n);
  8. /* Estimate the running time of f(argp) using gettimeofday
  9. Return the average of n runs */
  10. double ftimer_gettod(ftimer_test_funct f, void *argp, int n);