Skip to content

Commit be1cedf

Browse files
committed
Fix #79871: On Windows, php can sleep only in 1ms steps
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350174 c90b9560-bf6c-de11-be94-00142212c4b1
1 parent b168602 commit be1cedf

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

reference/misc/functions/time-nanosleep.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@
3737
<para>
3838
Must be a non-negative integer less than 1 billion.
3939
</para>
40+
<note>
41+
<simpara>
42+
On Windows, the system may sleep longer that the given number of nanoseconds,
43+
depending on the hardware.
44+
</simpara>
45+
</note>
4046
</listitem>
4147
</varlistentry>
4248
</variablelist>

reference/misc/functions/usleep.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@
2828
Halt time in microseconds. A microsecond is one millionth of a
2929
second.
3030
</para>
31+
<note>
32+
<simpara>
33+
On Windows, the system may sleep longer that the given number of microseconds,
34+
depending on the hardware.
35+
</simpara>
36+
</note>
3137
</listitem>
3238
</varlistentry>
3339
</variablelist>

0 commit comments

Comments
 (0)