diff --git a/examples/rtic_bare3.rs b/examples/rtic_bare3.rs index c339fc55f6be095e066ba6812a4e05310d8fae35..1d439c314f8600be4836070ac852d221027bff8c 100644 --- a/examples/rtic_bare3.rs +++ b/examples/rtic_bare3.rs @@ -23,12 +23,13 @@ const APP: () = { let start = Instant::now(); wait(1_000_000); + let diff = start.elapsed().as_cycles(); let end = Instant::now(); // notice all printing outside of the section to measure! hprintln!("Start {:?}", start).ok(); hprintln!("End {:?}", end).ok(); - hprintln!("Diff {:?}", start.elapsed().as_cycles()).ok(); + hprintln!("Diff {:?}", diff).ok(); } }; @@ -100,9 +101,9 @@ fn wait(i: u32) { // // What is now the output in the Adapter Output console? // -// Start Instant(2374747659) -// End Instant(2378747675) -// Diff 4001549 +// Start Instant(1347038883) +// End Instant(1351038906) +// Diff 4000016 // // Commit your answers (bare3_3) //