]>
Commit | Line | Data |
---|---|---|
5489fcc3 KR |
1 | #ifndef hertz_h |
2 | #define hertz_h | |
3 | ||
4 | #include "gprof.h" | |
5 | ||
12516a37 | 6 | #define HZ_WRONG 0 /* impossible clock frequency */ |
5489fcc3 KR |
7 | |
8 | /* | |
9 | * Discover the tick frequency of the machine if something goes wrong, | |
10 | * we return HZ_WRONG, an impossible sampling frequency. | |
11 | */ | |
c3de2a19 ILT |
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 | |
12516a37 | 19 | extern int hertz PARAMS ((void)); |
c3de2a19 | 20 | #endif |
5489fcc3 KR |
21 | |
22 | #endif /* hertz_h */ |