Skip to content

Commit

Permalink
fix: Fix mac build by calling count on durations (#9855)
Browse files Browse the repository at this point in the history
We can print `std::chrono` durations our usual PR test builds but not on
mac. Should fix the mac build if this is the only issue.
  • Loading branch information
codygunton authored Nov 8, 2024
1 parent 23ff518 commit 9978c97
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ bool ClientIVC::prove_and_verify()
auto proof = prove();
auto end = std::chrono::steady_clock::now();
auto diff = std::chrono::duration_cast<std::chrono::milliseconds>(end - start);
vinfo("time to call ClientIVC::prove: ", diff, " ms.");
vinfo("time to call ClientIVC::prove: ", diff.count(), " ms.");
return verify(proof);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ WASM_EXPORT void acir_prove_and_verify_aztec_client(uint8_t const* acir_stack,
}
auto end = std::chrono::steady_clock::now();
auto diff = std::chrono::duration_cast<std::chrono::milliseconds>(end - start);
vinfo("time to construct and accumulate all circuits: ", diff);
vinfo("time to construct and accumulate all circuits: ", diff.count());

vinfo("calling ivc.prove_and_verify...");
bool result = ivc.prove_and_verify();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ template <IsHonkFlavor Flavor> class DeciderProvingKey_ {
}
auto end = std::chrono::steady_clock::now();
auto diff = std::chrono::duration_cast<std::chrono::milliseconds>(end - start);
vinfo("time to construct proving key: ", diff, " ms.");
vinfo("time to construct proving key: ", diff.count(), " ms.");
}

DeciderProvingKey_() = default;
Expand Down

0 comments on commit 9978c97

Please sign in to comment.