What is the rationale for renaming monotonic_clock to steady_clock in <chrono>?

拈花ヽ惹草 提交于 2019-11-27 23:37:50

N3128 is the proposal that did so and includes the rationale:

The implementation of the timeout definition necessarily depends on a steady clock, one that cannot be adjusted. A monotonic clock is not sufficient. While one could be implicit in the standard, below we make one explicit.

Given a steady clock, the monotonic clock seems to be of marginal utility, and we replace the monotonic clock with the steady clock.

monotonic_clock wasn't deprecated. It was removed prior to standardization. The draft standard is subject to change right up until it is voted to FDIS. And this is one of those changes. Living on the draft (the bleeding edge) is great, but one must accept the risks of doing so.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!