Created
January 25, 2022 05:50
-
-
Save StevenBlack/d6966c93db73d6e8dc6551d02f83b402 to your computer and use it in GitHub Desktop.
Rust elapsed time
This file contains hidden or 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 mut lines: Vec<String> = self.raw_list.clone(); | |
println!("clone {}", start.elapsed().as_millis()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment