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"
/***************************************************************************
}
-/********************** 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