diff options
author | Erik Schnetter <schnetter@gmail.com> | 2012-04-04 15:55:18 -0400 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2012-04-04 15:55:18 -0400 |
commit | 1f768692347784aca9d76fe98f9948e948b6a118 (patch) | |
tree | 599958eb6e8968a9b37ce20a9c16a6e891a52dd1 | |
parent | 21eb7cde9c592ba16ebeb90efae188a3dbaa4199 (diff) |
Carpet: Time OutputGH operations
-rw-r--r-- | Carpet/Carpet/src/Evolve.cc | 3 | ||||
-rw-r--r-- | Carpet/Carpet/src/Initialise.cc | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Carpet/Carpet/src/Evolve.cc b/Carpet/Carpet/src/Evolve.cc index 204f254dc..5fd146991 100644 --- a/Carpet/Carpet/src/Evolve.cc +++ b/Carpet/Carpet/src/Evolve.cc @@ -686,7 +686,10 @@ namespace Carpet { void OutputGH (char const * const where, cGH * const cctkGH) { + static Timer timer("OutputGH"); + timer.start(); CCTK_OutputGH (cctkGH); + timer.stop(); } } // namespace Carpet diff --git a/Carpet/Carpet/src/Initialise.cc b/Carpet/Carpet/src/Initialise.cc index 6db6eb8a2..e7649a413 100644 --- a/Carpet/Carpet/src/Initialise.cc +++ b/Carpet/Carpet/src/Initialise.cc @@ -1280,7 +1280,10 @@ namespace Carpet { void OutputGH (char const * const where, cGH * const cctkGH) { + static Timer timer("OutputGH"); + timer.start(); CCTK_OutputGH (cctkGH); + timer.stop(); } |