Instance Property インスタンスプロパティ

tolerance

The amount of time after the scheduled fire date that the timer may fire. タイマーが発火するかもしれない、予定発火日付の後の時間量。

Declaration 宣言

var tolerance: TimeInterval { get set }

Discussion 議論

The default value is zero, which means no additional tolerance is applied. 省略時の値はゼロです、それはどんな追加的偏差も適用されないことを意味します。

Setting a tolerance for a timer allows it to fire later than the scheduled fire date. Allowing the system flexibility in when a timer fires increases the ability of the system to optimize for increased power savings and responsiveness. ある公差をタイマーに設定することは、それが予定れさた発火日付よりも後に発火することを許します。あるタイマーが発火する時における柔軟性をシステムに与えることは、システムの能力を増大させて、動力節約と応答性を高めるために最適化します。

The timer may fire at any time between its scheduled fire date and the scheduled fire date plus the tolerance. The timer will not fire before the scheduled fire date. For repeating timers, the next fire date is calculated from the original fire date regardless of tolerance applied at individual fire times, to avoid drift. The system reserves the right to apply a small amount of tolerance to certain timers regardless of the value of this property. タイマーは、それの予定発火日時と予定発火日時に公差を加えたものの間のいつ何時にか発火するかもしれません。タイマーは、予定された発火日付の前には発火しません。反復タイマーに対して、次の発火日時は、個々の発火時間に適用される公差に関係なく、元の発火日時から計算されます、ふらふらするのを防ぐために。システムは、このプロパティの値に関係なく、ある小さな量の公差を特定のタイマーに適用する権利を保有します。