mirror of
https://github.com/Chaoscaot/schemsearch.git
synced 2025-11-04 21:54:00 +01:00
Timings
This commit is contained in:
@ -17,6 +17,7 @@
|
||||
|
||||
mod types;
|
||||
|
||||
use std::fmt::Debug;
|
||||
use std::fs::File;
|
||||
use std::io;
|
||||
use std::io::{BufWriter, Write};
|
||||
@ -158,6 +159,8 @@ fn main() {
|
||||
return;
|
||||
}
|
||||
|
||||
let start = std::time::Instant::now();
|
||||
|
||||
let search_behavior = SearchBehavior {
|
||||
ignore_block_data: matches.get_flag("ignore-data"),
|
||||
ignore_block_entities: matches.get_flag("ignore-block-entities"),
|
||||
@ -312,6 +315,9 @@ fn main() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
let end = std::time::Instant::now();
|
||||
println!("Finished in {:.2}s! Searched in {} Schematics", end.duration_since(start).as_secs_f32(), schematics.len());
|
||||
}
|
||||
|
||||
fn load_schem(schem_path: &PathBuf) -> Option<Schematic> {
|
||||
|
||||
Reference in New Issue
Block a user