X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=check%2Ftimer.cpp;h=98a2fe455e90dec0511b9c6ecc69436ede83f5f1;hp=0723b8a909c9624805c99832c5deb3fa2db0b710;hb=cd0f12f5ce6023812f76d0f6eb40ee83078c2775;hpb=5b44febe31956b36b62cd3650f7c5249bbe8100c diff --git a/check/timer.cpp b/check/timer.cpp index 0723b8a9..98a2fe45 100644 --- a/check/timer.cpp +++ b/check/timer.cpp @@ -3,7 +3,7 @@ * A simple stop watch class. */ /* - * GiNaC Copyright (C) 1999-2005 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2015 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 @@ -20,9 +20,6 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif #ifdef HAVE_RUSAGE #include #include @@ -31,6 +28,9 @@ #include #endif +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include "timer.h" timer::timer() : on(false) @@ -82,7 +82,6 @@ void timer::reset() double timer::read() { - double elapsed; #ifdef HAVE_RUSAGE if (running()) getrusage(RUSAGE_SELF, &used2);