X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=check%2Ftimer.h;h=ba6ff3f671cc18228d78252aeac51d4fb5b473cd;hp=2e76a6e1a6e8926095770815266d3172d96ccfe6;hb=502e76319b484c32246707e33e70a428ac5dc6ad;hpb=da64e515abf7243bc4c84ca3631470931c4e6691 diff --git a/check/timer.h b/check/timer.h index 2e76a6e1..ba6ff3f6 100644 --- a/check/timer.h +++ b/check/timer.h @@ -3,7 +3,7 @@ * A simple stop watch class. */ /* - * GiNaC Copyright (C) 1999-2005 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2008 Johannes Gutenberg University Mainz, Germany * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -23,7 +23,14 @@ #ifndef TIMER_H #define TIMER_H +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif +#ifdef HAVE_RUSAGE #include +#else +#include +#endif class timer { public: @@ -35,7 +42,11 @@ public: bool running(); private: bool on; +#ifdef HAVE_RUSAGE struct rusage used1, used2; +#else + std::clock_t used1, used2; +#endif }; #endif // ndef TIMER_H