Back to index

texmacs  1.0.7.15
timer.hpp
Go to the documentation of this file.
00001 
00002 /******************************************************************************
00003 * MODULE     : timer.hpp
00004 * DESCRIPTION: timers
00005 * COPYRIGHT  : (C) 1999  Joris van der Hoeven
00006 *******************************************************************************
00007 * This software falls under the GNU general public license version 3 or later.
00008 * It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
00009 * in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
00010 ******************************************************************************/
00011 
00012 #ifndef TIMER_H
00013 #define TIMER_H
00014 #include "string.hpp"
00015 #include "tm_configure.hpp"
00016 
00017 #ifndef HAVE_TIME_T
00018 #define HAVE_TIME_T
00019 typedef long time_t;
00020 #endif
00021 
00022 #ifdef OS_SUN
00023 #include <sys/types.h>
00024 #endif
00025 
00026 #ifdef HAVE_GETTIMEOFDAY
00027 #include <sys/time.h>
00028 #else
00029 #include <sys/timeb.h>
00030 #ifdef OS_SUN
00031 extern "C" {
00032   extern int ftime __P ((struct timeb *__timebuf));
00033 };
00034 #endif
00035 #endif
00036 
00037 time_t raw_time ();
00038 time_t texmacs_time ();
00039 
00040 void   bench_start (string task);
00041 void   bench_cumul (string task);
00042 void   bench_end   (string task);
00043 void   bench_reset (string task);
00044 void   bench_print (string task);
00045 void   bench_print ();
00046 
00047 #endif // defined TIMER_H