aboutsummaryrefslogtreecommitdiff
path: root/examples/schedule.rs
diff options
context:
space:
mode:
authorGravatar bors[bot] <26634292+bors[bot]@users.noreply.github.com> 2020-01-24 15:14:58 +0000
committerGravatar GitHub <noreply@github.com> 2020-01-24 15:14:58 +0000
commit03ac76a0a209f4af2baaf4bb56057b96a672e391 (patch)
treef0980487592af1fdbb20c171409adaeab82e5f66 /examples/schedule.rs
parent1e827e24d024e910b44f6cc6db278e4c66a77683 (diff)
parentb04103f6df712233b7659f2a845461f4db682e32 (diff)
downloadrtic-03ac76a0a209f4af2baaf4bb56057b96a672e391.tar.gz
rtic-03ac76a0a209f4af2baaf4bb56057b96a672e391.tar.zst
rtic-03ac76a0a209f4af2baaf4bb56057b96a672e391.zip
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/schedule.rs')
-rw-r--r--examples/schedule.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/schedule.rs b/examples/schedule.rs
index 97818e36..a1c41ca5 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();