Ableton / link

Ableton Link
Other
1.1k stars 149 forks source link

Readme: std::chrono::high_resolution_clock ? #136

Closed JoergAtGithub closed 1 year ago

JoergAtGithub commented 1 year ago

The Readme states C++ standard library std::chrono::high_resolution_clock-based implementation in [platforms/stl/Clock.hpp](https://github.com/Ableton/link/blob/master/include/ableton/platforms/stl/Clock.hpp)

I wonder if std::chrono::high_resolution_clock is really used there, I see only steady_clock in the code, but not high_resolution_clock

cdi-ableton commented 1 year ago

Indeed, std::chrono::high_resolution_clock is not used anymore. We switched to std::chrono::steady_clock since high_resolution_clock is not guaranteed to be monotonic (see https://github.com/Ableton/link/commit/a40326dcc253529db756f401ba9043feee1adabc). Unfortunately, we didn't update the documentation accordingly. So thanks for the heads-up, we'll update the README.md.

JoergAtGithub commented 1 year ago

Thanks for updating README.md!