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

bare3_3

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