Timing.h 525 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef _TIMING_H_
  2. #define _TIMING_H_
  3. //#define TIMING
  4. #if defined(TIMING) && !defined(__alpha)
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. void _timingInit(void);
  9. void _timingPrint(void);
  10. void _timingEnter(int);
  11. void _timingLeave(int);
  12. #ifdef __cplusplus
  13. }
  14. #endif
  15. #define timingPrint() _timingPrint()
  16. #define timingInit() _timingInit()
  17. #define timingLeave(x) _timingLeave(x)
  18. #define timingEnter(x) _timingEnter(x)
  19. #else
  20. #define timingPrint()
  21. #define timingInit()
  22. #define timingLeave(x)
  23. #define timingEnter(x)
  24. #endif
  25. #endif