From 4b59f8428917efa7da25f4999802a7bcf144fee1 Mon Sep 17 00:00:00 2001
From: Josef Utbult <josutb-7@student.ltu.se>
Date: Wed, 10 Mar 2021 10:08:27 +0100
Subject: [PATCH] bare3_3

---
 examples/rtic_bare3.rs | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/examples/rtic_bare3.rs b/examples/rtic_bare3.rs
index c339fc5..1d439c3 100644
--- a/examples/rtic_bare3.rs
+++ b/examples/rtic_bare3.rs
@@ -23,12 +23,13 @@ const APP: () = {
 
         let start = Instant::now();
         wait(1_000_000);
+        let diff = start.elapsed().as_cycles();
         let end = Instant::now();
 
         // notice all printing outside of the section to measure!
         hprintln!("Start {:?}", start).ok();
         hprintln!("End {:?}", end).ok();
-        hprintln!("Diff {:?}", start.elapsed().as_cycles()).ok();
+        hprintln!("Diff {:?}", diff).ok();
     }
 };
 
@@ -100,9 +101,9 @@ fn wait(i: u32) {
 //
 //    What is now the output in the Adapter Output console?
 //
-//      Start Instant(2374747659)
-//      End Instant(2378747675)
-//      Diff 4001549
+//      Start Instant(1347038883)
+//      End Instant(1351038906)
+//      Diff 4000016
 //
 //    Commit your answers (bare3_3)
 //
-- 
GitLab