aboutsummaryrefslogtreecommitdiff
path: root/macros/src
diff options
context:
space:
mode:
Diffstat (limited to 'macros/src')
-rw-r--r--macros/src/codegen/module.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/macros/src/codegen/module.rs b/macros/src/codegen/module.rs
index 41f5b22a..75435b54 100644
--- a/macros/src/codegen/module.rs
+++ b/macros/src/codegen/module.rs
@@ -275,6 +275,9 @@ pub fn codegen(
#(#cfgs)*
/// Spawns the task after a set duration relative to the current time
+ ///
+ /// This will use the time `Instant::new(0)` as baseline if called in `#[init]`,
+ /// so if you use a non-resetable timer use `spawn_at` when in `#[init]`
pub fn spawn_after<D>(
duration: D
#(,#args)*