Skip to content

Instantly share code, notes, and snippets.

@StevenBlack
Created January 25, 2022 05: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 StevenBlack/d6966c93db73d6e8dc6551d02f83b402 to your computer and use it in GitHub Desktop.
Save StevenBlack/d6966c93db73d6e8dc6551d02f83b402 to your computer and use it in GitHub Desktop.
Rust elapsed time
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