Skip to content

Commit

Permalink
Removed time
Browse files Browse the repository at this point in the history
  • Loading branch information
awxkee committed Dec 3, 2024
1 parent b5fa826 commit 1c73c52
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/imageops/filter_1d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use crate::ImageError;
use num_traits::{AsPrimitive, MulAdd};
use std::mem::size_of;
use std::ops::{Add, Mul};
use std::time::Instant;

#[cfg(any(
all(
Expand Down Expand Up @@ -797,8 +796,6 @@ where

let mut transient_image = vec![T::default(); image_size.width * image_size.height * N];

let start_time = Instant::now();

for (y, dst) in transient_image
.chunks_exact_mut(image_size.width * N)
.enumerate()
Expand Down Expand Up @@ -831,8 +828,6 @@ where
);
}

println!("Horizontal time {:?}", start_time.elapsed());

let column_kernel_shape = KernelShape {
width: 0,
height: scanned_column_kernel.len(),
Expand All @@ -857,8 +852,6 @@ where

let src_stride = image_size.width * N;

let start_time = Instant::now();

for (y, dst) in destination
.chunks_exact_mut(image_size.width * N)
.enumerate()
Expand Down Expand Up @@ -893,8 +886,6 @@ where
);
}

println!("Vertical time {:?}", start_time.elapsed());

Ok(())
}

Expand Down

0 comments on commit 1c73c52

Please sign in to comment.