Last active
November 20, 2022 08:35
-
-
Save simbesh/729c955b0ef0ac06f56986518bf85165 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::time::Instant; | |
let start = Instant::now(); | |
// ... | |
let duration = start.elapsed(); | |
println!("Time elapsed in expensive_function() is: {:?}", duration); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment