From 20d5492f1ffa930bfafeb7a5905c116a57f6dfe4 Mon Sep 17 00:00:00 2001
From: Josef Utbult <josutb-7@student.ltu.se>
Date: Wed, 3 Mar 2021 17:24:39 +0100
Subject: [PATCH] bare3_1
---
examples/rtic_bare3.rs | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/examples/rtic_bare3.rs b/examples/rtic_bare3.rs
index 9173175..cc2c260 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) ).ok();
+ hprintln!("Diff {:?}", (end - start).as_cycles()).ok();
}
};
@@ -62,7 +62,8 @@ fn wait(i: u32) {
//
// What is the output in the Adapter Output console?
//
-// ** your answer here **
+// Start Instant(21208703)
+// End Instant(25208720)
//
// As you see line 31 is commented out (we never print the difference).
//
@@ -76,7 +77,9 @@ fn wait(i: u32) {
//
// What is now the output in the Adapter Output console?
//
-// ** your answer here **
+// Start Instant(1308087640)
+// End Instant(1312087656)
+// Diff 4000016
//
// Commit your answers (bare3_1)
//
--
GitLab