]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libiberty/getruntime.c
clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on platforms that don't have HZ.
[thirdparty/gcc.git] / libiberty / getruntime.c
index 861622259016036bfa11353f53a91237c60baa98..74f4dd5b30757795a011c0fc5ffae9b7c1f70540 100644 (file)
@@ -1,5 +1,5 @@
 /* Return time used so far, in microseconds.
-   Copyright (C) 1994 Free Software Foundation, Inc.
+   Copyright (C) 1994, 1999 Free Software Foundation, Inc.
 
 This file is part of the libiberty library.
 Libiberty is free software; you can redistribute it and/or
@@ -47,6 +47,10 @@ Boston, MA 02111-1307, USA.  */
 #define CLOCKS_PER_SEC 1
 #endif
 
+#if defined (HAVE_TIMES) && ! defined (HZ)
+#define HZ CLOCKS_PER_SEC
+#endif
+
 long
 get_run_time ()
 {