Skip to content

Commit

Permalink
fix: changed conditioning for timing functionality in circuit_builder
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaMasych committed Nov 27, 2024
1 parent 6d1b99e commit 731fef6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plonky2/src/plonk/circuit_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,7 @@ impl<F: RichField + Extendable<D>, const D: usize> CircuitBuilder<F, D> {
) -> (CircuitData<F, C, D>, bool) {
let mut timing = TimingTree::new("preprocess", Level::Trace);

#[cfg(feature = "std")]
#[cfg(feature = "timing")]
let start = Instant::now();

let rate_bits = self.config.fri_config.rate_bits;
Expand Down Expand Up @@ -1308,7 +1308,7 @@ impl<F: RichField + Extendable<D>, const D: usize> CircuitBuilder<F, D> {
};

timing.print();
#[cfg(feature = "std")]
#[cfg(feature = "timing")]
debug!("Building circuit took {}s", start.elapsed().as_secs_f32());
(
CircuitData {
Expand Down

0 comments on commit 731fef6

Please sign in to comment.