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

23 lines
515 B

  1. /* Routines for using cycle counter */
  2. /* Start the counter */
  3. void start_counter();
  4. /* Get # cycles since counter started */
  5. double get_counter();
  6. /* Measure overhead for counter */
  7. double ovhd();
  8. /* Determine clock rate of processor */
  9. double mhz(int verbose);
  10. /* Determine clock rate of processor, having more control over accuracy */
  11. double mhz_full(int verbose, int sleeptime);
  12. /** Special counters that compensate for timer interrupt overhead */
  13. void start_comp_counter();
  14. double get_comp_counter();