x86cpuspeed.h 511 B

123456789101112131415161718192021222324252627
  1. /*
  2. cpucycles x86cpuspeed.h version 20090716
  3. Matthew Dempsky
  4. Public domain.
  5. */
  6. #ifndef CPUCYCLES_x86cpuspeed_h
  7. #define CPUCYCLES_x86cpuspeed_h
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. extern long long cpucycles_x86cpuspeed(void);
  12. extern long long cpucycles_x86cpuspeed_persecond(void);
  13. #ifdef __cplusplus
  14. }
  15. #endif
  16. #ifndef cpucycles_implementation
  17. #define cpucycles_implementation "x86cpuspeed"
  18. #define cpucycles cpucycles_x86cpuspeed
  19. #define cpucycles_persecond cpucycles_x86cpuspeed_persecond
  20. #endif
  21. #endif