From c33965a65d73689f410d445a808f1afd5af9221d Mon Sep 17 00:00:00 2001
From: Oliver Sander <sander@dune-project.org>
Date: Mon, 28 Jan 2013 21:19:35 +0000
Subject: [PATCH] warn about Timer not returning wall-time for multi-threaded
 code

[[Imported from SVN: r7095]]
---
 dune/common/timer.hh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dune/common/timer.hh b/dune/common/timer.hh
index e51a9b80b..7c0b06c46 100644
--- a/dune/common/timer.hh
+++ b/dune/common/timer.hh
@@ -41,6 +41,11 @@ namespace Dune {
 
      The class is basically a wrapper for the libc-function getrusage()
 
+     \warning In a multi-threading situation, this class does NOT return wall-time!
+     Instead, the run time for all threads will be added up.
+     For example, if you have four threads running in parallel taking one second each,
+     then the Timer class will return an elapsed time of four seconds.
+
    */
   class Timer
   {
-- 
GitLab