aboutsummaryrefslogtreecommitdiff
path: root/gprof/hertz.c
diff options
context:
space:
mode:
Diffstat (limited to 'gprof/hertz.c')
-rw-r--r--gprof/hertz.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gprof/hertz.c b/gprof/hertz.c
index 1c2927f..0d8d9d3 100644
--- a/gprof/hertz.c
+++ b/gprof/hertz.c
@@ -29,8 +29,15 @@ static char sccsid[] = "@(#)hertz.c 5.4 (Berkeley) 6/1/90";
*/
#define HZ_WRONG 0
+#ifdef __MSDOS__
+#define HERTZ 18
+#endif
+
hertz()
{
+#ifdef HERTZ
+ return HERTZ;
+#else
struct itimerval tim;
tim.it_interval.tv_sec = 0;
@@ -42,4 +49,5 @@ hertz()
if (tim.it_interval.tv_usec < 2)
return(HZ_WRONG);
return (1000000 / tim.it_interval.tv_usec);
+#endif
}