stat_getElapsedTime(): now visible when RTS_SUPPORTS_THREADS is defined (was: SMP only)
/* -----------------------------------------------------------------------------
- * $Id: Stats.c,v 1.42 2002/01/24 07:50:01 sof Exp $
+ * $Id: Stats.c,v 1.43 2002/02/04 20:12:08 sof Exp $
*
* (c) The GHC Team, 1998-1999
*
stats for this thread into the task_ids struct for that thread.
-------------------------------------------------------------------------- */
-#ifdef SMP
+#if defined(SMP)
void
stat_workerStop(void)
{
}
}
}
+#endif
+#if defined(RTS_SUPPORTS_THREADS)
long int stat_getElapsedTime ()
{
getTimes();
/* -----------------------------------------------------------------------------
- * $Id: Stats.h,v 1.15 2002/01/24 07:50:02 sof Exp $
+ * $Id: Stats.h,v 1.16 2002/02/04 20:12:09 sof Exp $
*
* (c) The GHC Team, 1998-1999
*
extern void statDescribeGens( void );
extern HsInt getAllocations( void );
-#ifdef SMP
+#if defined(RTS_SUPPORTS_THREADS)
extern long int stat_getElapsedTime ( void );
#endif