Ableton / link

Ableton Link
Other
1.06k stars 145 forks source link

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

Closed JoergAtGithub closed 9 months ago

JoergAtGithub commented 10 months 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 10 months 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 9 months ago

Thanks for updating README.md!