Avatar
omochimetaru 2/16/2022 5:55 AM
Hello, Swift community. The third review of SE-0329: Clock, Instant, and Duration has come to an end. This review was narrowly focused on some APIs involving the Duration type; other aspects of the proposal were accepted during prior reviews. Review feedback was much lighter, which is not surprising given the narrow scope of the review. The ...
5:55 AM
時間関係の型を追加する提案が採択されたので、プロポーザルを読み直していたんですが気になる箇所があって
5:56 AM
ContinuousClockのところに
On Darwin platforms this refers to time derived from the monotonic clock, for linux platforms this is in reference to the uptime clock; being that those two are the closest in behavioral meaning.
と書いてあって
5:56 AM
SuspendingClockのところに
For Darwin based platforms this is derived from the uptime clock whereas for linux based platforms this is derived from the monotonic clock since those most closely represent the concept for not incrementing while the machine is asleep.
5:56 AM
と書いてあって、
5:57 AM
Continuous: Darwin -> monotonic clock; Linux -> uptime Suspending: Darwin -> uptime; Linux -> monotonic clock
5:57 AM
uptimeを使うかmonotonic clockを使うかが、macとlinuxで反転しているんですけど
5:58 AM
詳しく知りたいんですが、このあたり詳しくなくて、何を見たらいいやら。