Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1.1.0 #3

Merged
merged 15 commits into from
Mar 20, 2024
Merged

Release 1.1.0 #3

merged 15 commits into from
Mar 20, 2024

Conversation

BerriJ
Copy link
Owner

@BerriJ BerriJ commented Mar 20, 2024

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.

@BerriJ BerriJ merged commit 9eb3bd7 into main Mar 20, 2024
10 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant