mirror of
https://github.com/Qortal/pirate-librustzcash.git
synced 2025-02-07 06:44:11 +00:00
proper elapsed time calc
This commit is contained in:
parent
1eb4fb91f6
commit
08806cc109
@ -60,6 +60,7 @@ fn main() {
|
||||
let now = std::time::Instant::now();
|
||||
|
||||
let tree = prepare_tree(&long_vec);
|
||||
let elapsed = now.elapsed();
|
||||
|
||||
println!("Tree final root: {}-{}",
|
||||
tree.root_node().expect("root").data().start_height,
|
||||
@ -68,6 +69,6 @@ fn main() {
|
||||
|
||||
println!("Prepare tree of {} length: {} ns / {} mcs / {} ms",
|
||||
number,
|
||||
now.elapsed().as_nanos(), now.elapsed().as_micros(), now.elapsed().as_millis()
|
||||
elapsed.as_nanos(), elapsed.as_micros(), elapsed.as_millis()
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user