diff options
| author | Jorge Aparicio <jorge@japaric.io> | 2020-01-21 22:23:20 +0100 |
|---|---|---|
| committer | Jorge Aparicio <jorge@japaric.io> | 2020-01-21 22:23:20 +0100 |
| commit | b04103f6df712233b7659f2a845461f4db682e32 (patch) | |
| tree | 9e190b25b18e2897bffa5bc39d577b1f19493c75 /examples | |
| parent | 6b0a2df41c024fa8e7da07f3b42a80f19840432e (diff) | |
docs: do not use Instant::now in #[init]
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/schedule.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/schedule.rs b/examples/schedule.rs index 97818e3..a1c41ca 100644 --- a/examples/schedule.rs +++ b/examples/schedule.rs @@ -20,6 +20,7 @@ const APP: () = { cx.core.DWT.enable_cycle_counter(); // semantically, the monotonic timer is frozen at time "zero" during `init` + // NOTE do *not* call `Instant::now` in this context; it will return a nonsense value let now = cx.start; // the start time of the system hprintln!("init @ {:?}", now).unwrap(); |
