这是一个本人学习 csapp 的 learning 库
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
401 B

  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);