From 75689fd76b3f42cc638cf60a4a99a0158264fd88 Mon Sep 17 00:00:00 2001
From: Blinningjr <nicke.l@telia.com>
Date: Tue, 8 Dec 2020 14:14:14 +0100
Subject: [PATCH] Corrected answares based on feedback from Edvin

---
 examples/timing_resources.rs | 5 ++++-
 examples/timing_task.rs      | 4 +++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/examples/timing_resources.rs b/examples/timing_resources.rs
index acddcbc..2be82cf 100644
--- a/examples/timing_resources.rs
+++ b/examples/timing_resources.rs
@@ -134,7 +134,10 @@ const APP: () = {
 // What was the software latency observed to enter the task?
 //
 // [Your answer here]
-// 16 - 2 = 14 cycles
+// Software latency observed: 14 - 12 = 2 cycles
+// Total latency observed: 16 - 2 = 14 cycles
+// Hardware latency: ~12 cycles
+// 
 //
 // Does RTIC infer any overhead?
 //
diff --git a/examples/timing_task.rs b/examples/timing_task.rs
index a4dbe5a..e30647a 100644
--- a/examples/timing_task.rs
+++ b/examples/timing_task.rs
@@ -104,7 +104,9 @@ const APP: () = {
 // What was the software latency observed to enter the task?
 //
 // [Your answer here]
-// 11 - 0 = 11 cycles
+// Software latency observed: 11 - 12 = -1 => ~0 cycles
+// Total latency observed: 11 - 0 = 11 cycles
+// Hardware latency: ~12 cycles
 //
 // Does RTIC infer any overhead for launching the task?
 //
-- 
GitLab