Skip to content

Commit

Permalink
Digest time printout
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-ozdemir committed Feb 15, 2024
1 parent c76f928 commit b902ebc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/set/int_set/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,9 @@ where

if self.digest.is_none() {
if in_verbose_mode() {
println!("Starting recomputation")
println!("Starting recomputation");
}
let t = std::time::Instant::now();
self.digest = {
let mut tmp = Vec::with_capacity(self.elements.len() + 1);
tmp.par_extend(
Expand All @@ -134,7 +135,8 @@ where
Some(self.exponentiator.exponentiate(tmp))
};
if in_verbose_mode() {
println!("Done with recomputation")
println!("Done with recomputation");
println!("Digest time: {}s", t.elapsed().as_secs_f64());
}
}
self.digest.clone().unwrap()
Expand Down

0 comments on commit b902ebc

Please sign in to comment.