File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,14 @@ use std::time::Instant;
15
15
/// # Precision
16
16
///
17
17
/// There is a limit on the maximum precision that a `Timer` can provide. This limit is
18
- /// dependent on the current platform; for instance, on Windows, the maximum precision is
18
+ /// dependent on the current platform and follows the precision provided by the `embassy-time`
19
+ /// crate for that platform; for instance, on Windows, the maximum precision is
19
20
/// about 16 milliseconds. Because of this limit, the timer may sleep for longer than the
20
21
/// requested duration. It will never sleep for less.
21
22
///
23
+ /// On embedded platforms like ESP-IDF, the precision is much higer (up to 1 microsecond),
24
+ /// because the `embassy-time` crate for ESP-IDF uses the ESP-IDF Timer service.
25
+ ///
22
26
/// # Examples
23
27
///
24
28
/// Sleep for 1 second:
You can’t perform that action at this time.
0 commit comments