about summary refs log tree commit diff
path: root/squash/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'squash/src/main.rs')
-rw-r--r--squash/src/main.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/squash/src/main.rs b/squash/src/main.rs
index a7cc66b..24d557f 100644
--- a/squash/src/main.rs
+++ b/squash/src/main.rs
@@ -31,10 +31,12 @@ fn main() -> Result<(), anyhow::Error> {
 
 			builder = builder.selector(sorsel);
 		}
-		cli::Selector::Kmeans => builder = builder.selector(Kmeans),
+		cli::Selector::Kmeans => builder = builder.selector(Kmeans { max_iter: 10 }),
 	};
 
+	let start = std::time::Instant::now();
 	let mut squasher = builder.build(&image.data);
+	println!("{:.2}ms", start.elapsed().as_secs_f32());
 
 	let size = squasher.map_over(&mut image.data);
 	image.data.resize(size, 0);