aboutsummaryrefslogtreecommitdiff
path: root/gprof/hertz.c
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1994-05-27 16:58:05 +0000
committerKen Raeburn <raeburn@cygnus>1994-05-27 16:58:05 +0000
commitc06e55d99ac38bd32492481f46b69ec62ee1e433 (patch)
tree7567d7ea926780a1d5242d47399b3a267283bb3a /gprof/hertz.c
parent60e8a534070c8dc181b2fb4971b8199597a168f1 (diff)
downloadgdb-c06e55d99ac38bd32492481f46b69ec62ee1e433.zip
gdb-c06e55d99ac38bd32492481f46b69ec62ee1e433.tar.gz
gdb-c06e55d99ac38bd32492481f46b69ec62ee1e433.tar.bz2
changes from gas-2.3/binutils-2.4 dist (details in branch log msgs, changelogs)
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
}