YizhePKU
f8c1e03ea7
Fix inaccurate sleep duration ( #12235 )
...
# Description
Improves the accuracy of sleep when the duration is larger than 100ms.
Fixes #12223 .
# User-Facing Changes
Sleeping for 150ms should work now.
```nushell
~/nushell> timeit { sleep 150ms } 03/19/2024 10:41:55 AM AM
151ms 344µs 201ns
```
2024-03-20 16:45:33 +08:00
..
2024-03-08 20:21:35 +02:00
2024-03-13 19:00:45 +01:00
2024-03-19 07:52:49 -05:00
2024-03-19 11:09:59 +01:00
2024-03-03 15:10:50 -06:00
2024-03-19 19:07:00 +01:00
2024-03-14 15:51:55 -05:00
2023-12-21 18:49:15 +01:00
2024-03-14 16:43:42 -05:00
2024-03-16 16:01:09 -05:00
2024-03-19 19:07:00 +01:00
2024-03-14 15:51:55 -05:00
2024-01-15 16:58:26 +08:00
2024-03-11 19:46:04 +01:00
2024-01-21 08:41:23 -06:00
2024-03-14 15:51:55 -05:00
2024-03-11 19:46:04 +01:00
2024-02-18 17:47:10 +01:00
2024-03-20 16:45:33 +08:00
2024-02-17 18:14:16 +00:00
2023-12-15 14:32:37 +08:00
2023-12-15 14:32:37 +08:00
2024-02-18 17:47:10 +01:00
2024-03-11 19:46:04 +01:00
2024-03-19 19:07:00 +01:00
2024-03-14 15:51:55 -05:00
2024-03-08 20:21:35 +02:00
2024-03-01 16:56:37 -06:00
2023-12-24 13:31:46 +01:00
2024-01-24 07:38:15 +08:00
2024-02-18 17:47:10 +01:00