GNU header update.
[cacao.git] / src / toolbox / logging.c
index fc0ac7237c309a92e273ddabfa7ba03fd67dbaa5..bbcc90b4e5c383607b8a4b8694a144245d66368c 100644 (file)
@@ -1,10 +1,9 @@
 /* toolbox/logging.c - contains logging functions
 
-   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
-   Institut f. Computersprachen, TU Wien
-   R. Grafl, A. Krall, C. Kruegel, C. Oates, R. Obermaisser, M. Probst,
-   S. Ring, E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich,
-   J. Wenninger
+   Copyright (C) 1996-2005 R. Grafl, A. Krall, C. Kruegel, C. Oates,
+   R. Obermaisser, M. Platter, M. Probst, S. Ring, E. Steiner,
+   C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich, J. Wenninger,
+   Institut f. Computersprachen - TU Wien
 
    This file is part of CACAO.
 
 
    Authors: Reinhard Grafl
 
-   $Id: logging.c 1086 2004-05-26 21:22:05Z twisti $
+   $Id: logging.c 1735 2004-12-07 14:33:27Z 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 +249,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