Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit dfc106b6 authored by Christof Metzger-Kraus's avatar Christof Metzger-Kraus
Browse files

adding test whether a timer was stopped before it is started again

parent 76f3ad7a
No related branches found
No related tags found
1 merge request!8Resolve "Failed to open h5 file"
......@@ -2,7 +2,7 @@
/***************************************************************************
*
* The IPPL Framework
*
*
*
* Visit http://people.web.psi.ch/adelmann/ for more details
*
......@@ -44,6 +44,9 @@
#include <limits>
#include <string>
#ifdef TIMERDEBUG
#include <exception>
#endif
// a simple class used to store timer values
class IpplTimerInfo
{
......@@ -67,6 +70,11 @@ public:
t.clear();
t.start();
}
#ifdef TIMERDEBUG
else {
throw std::runtime_error("Timer '" + name + "' already running");
}
#endif
}
void stop() {
......@@ -76,6 +84,11 @@ public:
cpuTime += t.cpu_time();
wallTime += t.clock_time();
}
#ifdef TIMERDEBUG
else {
throw std::runtime_error("Timer '" + name + "' already idling");
}
#endif
}
void clear() {
......@@ -173,6 +186,5 @@ private:
/***************************************************************************
* $RCSfile: addheaderfooter,v $ $Author: adelmann $
* $Revision: 1.1.1.1 $ $Date: 2003/01/23 07:40:17 $
* IPPL_VERSION_ID: $Id: addheaderfooter,v 1.1.1.1 2003/01/23 07:40:17 adelmann Exp $
***************************************************************************/
* IPPL_VERSION_ID: $Id: addheaderfooter,v 1.1.1.1 2003/01/23 07:40:17 adelmann Exp $
***************************************************************************/
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment