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.hh7
1 files changed, 5 insertions, 2 deletions
diff --git a/Carpet/Carpet/src/CactusTimer.hh b/Carpet/Carpet/src/CactusTimer.hh
index 851bf7ca5..cab4c592a 100644
--- a/Carpet/Carpet/src/CactusTimer.hh
+++ b/Carpet/Carpet/src/CactusTimer.hh
@@ -41,10 +41,13 @@ namespace Carpet {
/// Timer name
string name () const;
- /// Return the current time of the timer as a double
+ /// Return the current time of the timer in seconds as a double
double getTime();
- /// Return all clock names
+ /// Return the average and maximum current time over all MPI processes
+ void getGlobalTime(double& avg, double& max);
+
+ /// Return all clock names and their units
vector<pair<string,string> > getAllTimerNames() const;
/// Return all clock values of the timer as double