Skip to content
Snippets Groups Projects
Commit 20d5492f authored by Josef Utbult's avatar Josef Utbult
Browse files

bare3_1

parent e03ddf20
No related branches found
No related tags found
No related merge requests found
......@@ -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)
//
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment