diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-01-24 15:14:58 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-24 15:14:58 +0000 |
| commit | 03ac76a0a209f4af2baaf4bb56057b96a672e391 (patch) | |
| tree | f0980487592af1fdbb20c171409adaeab82e5f66 /examples | |
| parent | 1e827e24d024e910b44f6cc6db278e4c66a77683 (diff) | |
| parent | b04103f6df712233b7659f2a845461f4db682e32 (diff) | |
Merge #295
295: docs: do not use Instant::now in #[init] r=korken89 a=japaric
Co-authored-by: Jorge Aparicio <jorge@japaric.io>
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(); |
