diff --git a/examples/rtic_bare3.rs b/examples/rtic_bare3.rs index 9173175c051d4b3e4615e0db20d2b08265d59763..cc2c260d40753d2469f45c77ceb60cc5beeef7ba 100644 --- a/examples/rtic_bare3.rs +++ b/examples/rtic_bare3.rs @@ -28,7 +28,7 @@ const APP: () = { // notice all printing outside of the section to measure! hprintln!("Start {:?}", start).ok(); hprintln!("End {:?}", end).ok(); - // hprintln!("Diff {:?}", (end - start) ).ok(); + hprintln!("Diff {:?}", (end - start).as_cycles()).ok(); } }; @@ -62,7 +62,8 @@ fn wait(i: u32) { // // What is the output in the Adapter Output console? // -// ** your answer here ** +// Start Instant(21208703) +// End Instant(25208720) // // As you see line 31 is commented out (we never print the difference). // @@ -76,7 +77,9 @@ fn wait(i: u32) { // // What is now the output in the Adapter Output console? // -// ** your answer here ** +// Start Instant(1308087640) +// End Instant(1312087656) +// Diff 4000016 // // Commit your answers (bare3_1) //