@@ -168,8 +168,16 @@ public function removeWriteStream($stream);
168
168
* hello('Tester', $loop);
169
169
* ```
170
170
*
171
- * The execution order of timers scheduled to execute at the same time is
172
- * not guaranteed.
171
+ * This interface does not enforce any particular timer resolution, so
172
+ * special care may have to be taken if you rely on very high precision with
173
+ * millisecond accuracy or below. Event loop implementations SHOULD work on
174
+ * a best effort basis and SHOULD provide at least millisecond accuracy
175
+ * unless otherwise noted. Many existing event loop implementations are
176
+ * known to provide microsecond accuracy, but it's generally not recommended
177
+ * to rely on this high precision.
178
+ *
179
+ * Similarly, the execution order of timers scheduled to execute at the
180
+ * same time (within its possible accuracy) is not guaranteed.
173
181
*
174
182
* @param int|float $interval The number of seconds to wait before execution.
175
183
* @param callable $callback The callback to invoke.
@@ -227,8 +235,16 @@ public function addTimer($interval, $callback);
227
235
* hello('Tester', $loop);
228
236
* ```
229
237
*
230
- * The execution order of timers scheduled to execute at the same time is
231
- * not guaranteed.
238
+ * This interface does not enforce any particular timer resolution, so
239
+ * special care may have to be taken if you rely on very high precision with
240
+ * millisecond accuracy or below. Event loop implementations SHOULD work on
241
+ * a best effort basis and SHOULD provide at least millisecond accuracy
242
+ * unless otherwise noted. Many existing event loop implementations are
243
+ * known to provide microsecond accuracy, but it's generally not recommended
244
+ * to rely on this high precision.
245
+ *
246
+ * Similarly, the execution order of timers scheduled to execute at the
247
+ * same time (within its possible accuracy) is not guaranteed.
232
248
*
233
249
* This interface suggests that event loop implementations SHOULD use a
234
250
* monotic time source if available. Given that a monotonic time source is
0 commit comments