docs: do not use Instant::now in #[init]

This commit is contained in:
Jorge Aparicio 2020-01-21 22:23:20 +01:00
parent 6b0a2df41c
commit b04103f6df
2 changed files with 5 additions and 0 deletions

View file

@ -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();