From d9287728fc4433cefbef5f048ef7e2efdeb18392 Mon Sep 17 00:00:00 2001
From: Timo Koch <timo.koch@iws.uni-stuttgart.de>
Date: Wed, 1 Aug 2018 12:20:23 +0200
Subject: [PATCH] [timeloop] Return actual cpu time in wall clock time

---
 dumux/common/timeloop.hh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dumux/common/timeloop.hh b/dumux/common/timeloop.hh
index 4ae0fe9983..c683c8292e 100644
--- a/dumux/common/timeloop.hh
+++ b/dumux/common/timeloop.hh
@@ -192,10 +192,10 @@ public:
     { endTime_ = t; }
 
     /*!
-     * \brief Returns the current wall clock time (cpu time).
+     * \brief Returns the current wall clock time (cpu time) spend in this time loop
      */
     double wallClockTime() const
-    {  return cpuTime_; }
+    { return timer_.elapsed(); }
 
     /*!
      * \brief Set the current time step size to a given value.
-- 
GitLab