Commit 488e0264 authored by Ranadeep Biswas's avatar Ranadeep Biswas
Browse files

Print durations

parent 7d60ded3
......@@ -525,6 +525,7 @@ impl Verifier {
ser_hist.history.vis_includes(&wr);
let mut change = false;
// wsc code
let mut now = std::time::Instant::now();
println!("wsc start");
loop {
change |= ser_hist.history.vis_is_trans();
......@@ -543,6 +544,7 @@ impl Verifier {
}
}
println!("wsc end");
println!("wsc took {}secs", now.elapsed().as_secs());
if ser_hist.history.vis.has_cycle() {
Some(self.consistency_model)
......@@ -574,7 +576,9 @@ impl Verifier {
// }
// lin_o.is_some();
now = std::time::Instant::now();
if ser_hist.get_linearization().is_some() {
println!("dbcop main algorithm took {}secs", now.elapsed().as_secs());
None
} else {
Some(self.consistency_model)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment