diff options
author | Ian Hinder <ian.hinder@aei.mpg.de> | 2012-04-28 19:55:36 +0200 |
---|---|---|
committer | Barry Wardell <barry.wardell@gmail.com> | 2012-09-11 18:23:16 +0100 |
commit | 68361828d2cca3aeada6d23efdbf9b2952a8918a (patch) | |
tree | 4cffd926bce64ee8b11128c2679218db1fe0a471 | |
parent | 0f599eb6bee8949ca356186dbbbdf7623902052e (diff) |
Add a timer around the scheduled functions barrier
-rw-r--r-- | Carpet/Carpet/src/CallFunction.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Carpet/Carpet/src/CallFunction.cc b/Carpet/Carpet/src/CallFunction.cc index fdb0bb7fd..65be1f244 100644 --- a/Carpet/Carpet/src/CallFunction.cc +++ b/Carpet/Carpet/src/CallFunction.cc @@ -320,7 +320,10 @@ namespace Carpet { buf << attribute->routine << "\n"; string const str = buf.str(); int const id = adler32(str.c_str(), str.length()); + static Timer barrier_timer ("barrier"); + barrier_timer.start(); Carpet::NamedBarrier (NULL, id, "Carpet::CallFunction"); + barrier_timer.stop(); } total_timer.stop(); |