From 96c8618112506a758af7a1f8fd6112f6fa87253a Mon Sep 17 00:00:00 2001
From: Josef Utbult <josutb-7@student.ltu.se>
Date: Fri, 5 Mar 2021 14:28:32 +0100
Subject: [PATCH] bare3_2

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

diff --git a/examples/rtic_bare3.rs b/examples/rtic_bare3.rs
index cc2c260..3ad888e 100644
--- a/examples/rtic_bare3.rs
+++ b/examples/rtic_bare3.rs
@@ -28,7 +28,7 @@ const APP: () = {
         // notice all printing outside of the section to measure!
         hprintln!("Start {:?}", start).ok();
         hprintln!("End {:?}", end).ok();
-        hprintln!("Diff {:?}", (end - start).as_cycles()).ok();
+        hprintln!("Diff {:?}", Instant::duration_since(&end, start).as_cycles()).ok();
     }
 };
 
@@ -89,7 +89,9 @@ fn wait(i: u32) {
 //
 //    What is now the output in the Adapter Output console?
 //
-//    ** your answer here **
+//      Start Instant(28537515)
+//      End Instant(32537531)
+//      Diff 4000016
 //
 //    Commit your answers (bare3_2)
 //
-- 
GitLab