Authors: Reinhard Grafl
- $Id: logging.c 1086 2004-05-26 21:22:05Z twisti $
+ $Id: logging.c 1273 2004-07-04 11:12:11Z stefan $
*/
#include <stdio.h>
#include <stdarg.h>
-#include <sys/time.h>
-#include <sys/resource.h>
+#include <stdlib.h>
+#include <string.h>
#include "global.h"
+#include "tables.h"
#include "toolbox/logging.h"
+#include "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