From 5ba70578fbbfea533caa63e4bbc97ce2d0a6b62e Mon Sep 17 00:00:00 2001
From: rubenasplund <ruben.asplund@hotmail.com>
Date: Tue, 8 Dec 2020 23:56:40 +0100
Subject: [PATCH] Corrected rtt_timing.rs

---
 examples/rtt_timing.rs | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/examples/rtt_timing.rs b/examples/rtt_timing.rs
index 6e077ee..470707e 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.
-- 
GitLab