X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=check%2Ftimer.cpp;h=e80cae18862b1f9329259d3f7fa1d323d9e83704;hb=71fdb941e62f5e4bf131bc40468cfa7a4a5c986a;hp=ff5de4ef43c89dc3c2cddd81c92acd62efbf8dc2;hpb=619d77d2676f7f1a562fb9fefc0ba6754fe2d750;p=ginac.git diff --git a/check/timer.cpp b/check/timer.cpp index ff5de4ef..e80cae18 100644 --- a/check/timer.cpp +++ b/check/timer.cpp @@ -3,7 +3,7 @@ * A simple stop watch class. */ /* - * GiNaC Copyright (C) 1999-2007 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2020 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,17 +20,16 @@ * 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 #include #else #include #endif +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include "timer.h" timer::timer() : on(false) @@ -82,7 +81,6 @@ void timer::reset() double timer::read() { - double elapsed; #ifdef HAVE_RUSAGE if (running()) getrusage(RUSAGE_SELF, &used2);