aboutsummaryrefslogtreecommitdiff
path: root/Carpet/Carpet/src/CactusTimer.hh
diff options
context:
space:
mode:
Diffstat (limited to 'Carpet/Carpet/src/CactusTimer.hh')
-rw-r--r--Carpet/Carpet/src/CactusTimer.hh18
1 files changed, 13 insertions, 5 deletions
diff --git a/Carpet/Carpet/src/CactusTimer.hh b/Carpet/Carpet/src/CactusTimer.hh
index 071ffc9ac..851bf7ca5 100644
--- a/Carpet/Carpet/src/CactusTimer.hh
+++ b/Carpet/Carpet/src/CactusTimer.hh
@@ -1,11 +1,13 @@
-
#ifndef CACTUSTIMER_HH
#define CACTUSTIMER_HH
+#include <cctk.h>
+
#include <iostream>
#include <list>
#include <string>
-#include <cctk.h>
+#include <utility>
+#include <vector>
namespace Carpet {
@@ -39,12 +41,18 @@ namespace Carpet {
/// Timer name
string name () const;
- /// Print timer data
- void printData ();
-
/// Return the current time of the timer as a double
double getTime();
+ /// Return all clock names
+ vector<pair<string,string> > getAllTimerNames() const;
+
+ /// Return all clock values of the timer as double
+ vector<double> getAllTimerValues();
+
+ /// Print timer data
+ void printData ();
+
ostream& serialise(ostream &os);
private: