[project @ 1998-04-10 10:54:14 by simonm]
[ghc-hetmet.git] / ghc / lib / std / cbits / getCPUTime.c
similarity index 88%
rename from ghc/lib/std/cbits/getCPUTime.lc
rename to ghc/lib/std/cbits/getCPUTime.c
index d3d7b2a..250e51c 100644 (file)
@@ -1,9 +1,10 @@
-%
-% (c) The GRASP/AQUA Project, Glasgow University, 1995
-%
-\subsection[getCPUTime.lc]{getCPUTime Runtime Support}
-
-\begin{code}
+/* 
+ * (c) The GRASP/AQUA Project, Glasgow University, 1994-1998
+ *
+ * $Id: getCPUTime.c,v 1.1 1998/04/10 10:54:34 simonm Exp $
+ *
+ * getCPUTime Runtime Support
+ */
 
 #ifndef _AIX
 #define NON_POSIX_SOURCE /*needed for solaris2 only?*/
@@ -14,7 +15,7 @@
 #define _INCLUDE_HPUX_SOURCE
 #endif
 
-#include "rtsdefs.h"
+#include "Rts.h"
 
 #ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
@@ -47,7 +48,7 @@
 #endif
 
 StgInt 
-clockTicks ()
+clockTicks (void)
 {
  return (
 #if defined(CLK_TCK)
@@ -100,8 +101,5 @@ getCPUTime(StgByteArray cpuStruct)
     return NULL;
 # endif
 #endif
-    return (StgByteArray) cpuStruct;
+    return (StgByteArray)cpuStruct;
 }
-
-\end{code}
-