diff --git a/examples/bare2.rs b/examples/bare2.rs index ce6acb20fb9221507961a8586a4ba8211917db1c..231e3571cf3703def513fcc216eceaa205b1c8a4 100644 --- a/examples/bare2.rs +++ b/examples/bare2.rs @@ -18,7 +18,7 @@ use panic_halt as _; use cortex_m::{iprintln, peripheral::DWT, Peripherals}; use cortex_m_rt::entry; -// burns CPU cycles by just looping `i` times +// burns CPU cycles by just 5looping `i` times #[inline(never)] fn wait(i: u32) { for _ in 0..i { @@ -77,18 +77,24 @@ fn main() -> ! { // // What is the output in the ITM console? // -// ** your answer here ** -// +// bare2 +// Start 2012359631 +// End 2139359709 +// Diff 127000078 +// // Rebuild and run in release mode // // > cargo build --example bare2 --release // -// ** your answer here ** +// bare2 + // Start 3019839635 + // End 3026839650 + // Diff 7000015 // // Compute the ratio between debug/release optimized code // (the speedup). // -// ** your answer here ** +// 18,1428 times faster // // commit your answers (bare2_1) //