aboutsummaryrefslogtreecommitdiff
path: root/Carpet/Carpet/src/TimerNode.hh
diff options
context:
space:
mode:
Diffstat (limited to 'Carpet/Carpet/src/TimerNode.hh')
-rw-r--r--Carpet/Carpet/src/TimerNode.hh9
1 files changed, 6 insertions, 3 deletions
diff --git a/Carpet/Carpet/src/TimerNode.hh b/Carpet/Carpet/src/TimerNode.hh
index 9658fd275..91c6c06a6 100644
--- a/Carpet/Carpet/src/TimerNode.hh
+++ b/Carpet/Carpet/src/TimerNode.hh
@@ -34,11 +34,12 @@
#ifndef TIMERNODE_HH
#define TIMERNODE_HH
-#include <assert.h>
+#include <cassert>
+#include <iostream>
#include <map>
-#include <string>
#include <ostream>
-#include <iostream>
+#include <string>
+#include <utility>
#include "CactusTimer.hh"
@@ -94,6 +95,8 @@ public:
TimerNode* getChildTimer(string name);
double getTime();
+ vector<pair<string, string> > getAllTimerNames() const;
+ vector<double> getAllTimerValues();
bool isRunning() const;
void print(ostream& out, double total, int level=0, double threshold=0.0, int precision=1);