]> www.ginac.de Git - ginac.git/blobdiff - check/timer.cpp
Happy New Year!
[ginac.git] / check / timer.cpp
index ff5de4ef43c89dc3c2cddd81c92acd62efbf8dc2..af986553ec67afa3c0019743df4b6f310873c133 100644 (file)
@@ -3,7 +3,7 @@
  *  A simple stop watch class. */
 
 /*
- *  GiNaC Copyright (C) 1999-2007 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2019 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
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
 #ifdef HAVE_RUSAGE
 #include <sys/resource.h>
-#include <unistd.h>
 #include <sys/time.h>
 #else
 #include <ctime>
 #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);