Skip to content
Snippets Groups Projects
Commit 5ba70578 authored by Ruben Asplund's avatar Ruben Asplund
Browse files

Corrected rtt_timing.rs

parent 1e46e967
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment