Skip to content
Back to formatted view

Raw Message

Message-ID: <22630.21795.782989.138019@max.nulle.part>
Date: 2016-12-30T12:37:55Z
From: Dirk Eddelbuettel
Subject: [Rcpp-devel] Rcpp Timer
In-Reply-To: <CALj-Zz_WJZyEO1joAgaMoDs56qO71YC93cb6EM6aVF15oLH3MA@mail.gmail.com>

On 29 December 2016 at 11:25, Jonathan Christensen wrote:
| Hi Kaspar and Dirk,
| 
| It is indeed cumulative. Previously (presumably when that gallery page was
| written) it was not cumulative, but Romain Francois changed the behavior of the
| step() function several years ago, in this commit:?https://github.com/RcppCore/
| Rcpp/commit/e295b2b178de55291e63705966368404bb0ce5e1.

Nice catch.
 
| There is no indication or reasoning about changing the behavior, so it may be
| that making it cumulative was unintentional.

Let's presume it was intentional to the author of the change -- but as you
rightly point out, it did of course change and reverse previous behaviour.

We could easily add a toggle to the constructor to get an either/or behaviour.

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org