New source tree.
[cacao.git] / src / toolbox / logging.c
index fc0ac7237c309a92e273ddabfa7ba03fd67dbaa5..6da47dae90b18f5e1b04d6ca192f799fab123a3a 100644 (file)
 
    Authors: Reinhard Grafl
 
-   $Id: logging.c 1086 2004-05-26 21:22:05Z twisti $
+   $Id: logging.c 1621 2004-11-30 13:06:55Z twisti $
 
 */
 
 
 #include <stdio.h>
 #include <stdarg.h>
-#include <sys/time.h>
-#include <sys/resource.h>
+#include <stdlib.h>
+#include <string.h>
 
-#include "global.h"
 #include "toolbox/logging.h"
+#include "vm/global.h"
+#include "vm/tables.h"
+#include "vm/statistics.h"
 
 
 /***************************************************************************
@@ -248,25 +250,6 @@ void panic(char *txt)
 }
 
 
-/********************** Function: getcputime ********************************
-
-       Returns the used CPU time in microseconds
-       
-****************************************************************************/
-
-s8 getcputime()
-{
-       struct rusage ru;
-       int sec, usec;
-
-       getrusage(RUSAGE_SELF, &ru);
-       sec = ru.ru_utime.tv_sec + ru.ru_stime.tv_sec;
-       usec = ru.ru_utime.tv_usec + ru.ru_stime.tv_usec;
-
-       return sec * 1000000 + usec;
-}
-
-
 /*
  * These are local overrides for various environment variables in Emacs.
  * Please do not remove this and leave it at the end of the file, where