Skip to content

Instantly share code, notes, and snippets.

@sirodoht
Created December 9, 2020 23:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sirodoht/82d38d4915ddfe7eaedf91dbfee1f809 to your computer and use it in GitHub Desktop.
Save sirodoht/82d38d4915ddfe7eaedf91dbfee1f809 to your computer and use it in GitHub Desktop.
use std::time::Instant;
let before = Instant::now();
workload();
println!("Elapsed time: {:.2?}", before.elapsed());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment