diff --git a/examples/rtt_timing.rs b/examples/rtt_timing.rs index 1dc033c21753525cf2ba4db6c7d82f0cca97a9a1..b0af83412922a2e60bd2f6ecd5abda39b7354124 100644 --- a/examples/rtt_timing.rs +++ b/examples/rtt_timing.rs @@ -78,19 +78,19 @@ fn timed_loop() -> (u32, u32) { // B.1) What is the cycle count for the loop? // > cargo run --example rtt_timing --release // -// [Your answer here] +// [903726927 - 903719926 = 7001] // // B.2) How many cycles per iteration? // -// [Your answer here] +// [7001/1000 = 7] // // What is the speedup (A/B)? // -// [Your answer here] +// [A/B = 4790/7 = 684 times] // // Why do you think it differs that much? // -// [Your answer here] +// [It removes some unnessesary code in the for loop which is inside the timed_loop().] // // ------------------------------------------------------------------------ // In the loop there is just a single assembly instruction (nop).