Skip to content

Release 1.1.0

Latest
Compare
Choose a tag to compare
@BerriJ BerriJ released this 20 Mar 09:16
1.1.0
9eb3bd7

Improvements

  • Add new Rcpp::CppTimer::ScopedTimer class. This can be used to time the lifespan of an object until it goes out of scope. This is useful for timing the duration of a function or a loop. The fibonacci example was updated to use this new class.
  • Warn about timers that are not stopped when aggregate is called (no matching toc() statement).
  • Warn about timers for which no matching tic() statement was found.
  • Add verbose parameter to the Timer class to control whether above warnings should be printed or not (defaults to true).
  • Add introductory vignette to the package.

Fixes

  • Fixed cases where only toc() was called without matching tic().
    • This led to a segfault in the previous version.
  • Fix reset() method which was not working properly in some cases where timers spread out over multiple methods.
  • Fix non-default constructors of the Timer class. They were not working properly in the previous version.

What's Changed

Full Changelog: 1.0.0...1.1.0