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

boost::timer is deprecated #597

Open
donno opened this issue Jan 12, 2025 · 1 comment
Open

boost::timer is deprecated #597

donno opened this issue Jan 12, 2025 · 1 comment
Assignees

Comments

@donno
Copy link

donno commented Jan 12, 2025

This applies to boost::timer (the class not the namespace) used at:

typedef boost::timer timer;

The replacement is boost::timer::cpu_timer which is in `boost/timer/cpu_timer.hpp.
The <boost/timer.hpp> header has been deprecated, since January 2019.
The class has been deprecated since around October 2011 when v2 was merged in with the replacement.

See Boost Thread Library documentation for details

Having said that, perhaps the better option would be to replace Boost timer class with std::chrono::steady_clock when not using the POSIX timers.

@boxanm
Copy link
Collaborator

boxanm commented Jan 12, 2025

Hi @donno! I opened a PR replacing boost::timer with std::chrono::steady_clock as suggested: #598
It should be part of the next LPM release.

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

When branches are created from issues, their pull requests are automatically linked.

2 participants