Commit | Line | Data |
---|---|---|
1 | #ifndef hertz_h | |
2 | #define hertz_h | |
3 | ||
4 | #include "gprof.h" | |
5 | ||
6 | #define HZ_WRONG 0 /* impossible clock frequency */ | |
7 | ||
8 | /* | |
9 | * Discover the tick frequency of the machine if something goes wrong, | |
10 | * we return HZ_WRONG, an impossible sampling frequency. | |
11 | */ | |
12 | ||
13 | /* FIXME: Checking for MACH here makes no sense when for a cross | |
14 | gprof. */ | |
15 | #ifdef MACH | |
16 | #include <machine/mach_param.h> | |
17 | #define hertz() (HZ) | |
18 | #else | |
19 | extern int hertz PARAMS ((void)); | |
20 | #endif | |
21 | ||
22 | #endif /* hertz_h */ |