diff --git a/examples/rtt_timing.rs b/examples/rtt_timing.rs index 6e077ee198417e2433ede22ffbd638b559934d77..470707e8d8575206ec76e7654efc5779e604e90a 100644 --- a/examples/rtt_timing.rs +++ b/examples/rtt_timing.rs @@ -72,7 +72,7 @@ fn timed_loop() -> (u32, u32) { // // A.2) How many cycles per iteration? // -// [4790154/1000 = 4790] +// [4790154/10000 = 479] // // A.3) Why do we need a wrapping subtraction? // @@ -91,7 +91,7 @@ fn timed_loop() -> (u32, u32) { // // What is the speedup (A/B)? // -// [A/B = 4790/7 = 684 times] +// [A/B = 479/7 = 68 times] // // Why do you think it differs that much? // @@ -117,15 +117,15 @@ fn timed_loop() -> (u32, u32) { // C.1) What is the cycle count for the loop? // > cargo run --example rtt_timing --release --features nightly // -// [909736501 - 909732500 = 4001] +// [909736501 - 909732500 = 40001] // // C.2) How many cycles per iteration? // -// [4001/1000 = 4] +// [40001/10000 = 4] // // What is the speedup (A/C)? // -// [4790/4 = 1198 times] +// [479/4 = 119.8 times] // // ------------------------------------------------------------------------ // D) Now lets have a closer look at the generated assembly.