Compare commits

...

2 Commits

Author SHA1 Message Date
8df88d2c42
build: musl static binary + native + strip 2022-08-04 20:33:16 +02:00
cda502d79c
time tracking 2022-07-19 08:20:15 +02:00
2 changed files with 7 additions and 0 deletions

3
.cargo/config.toml Normal file
View File

@ -0,0 +1,3 @@
[build]
target = "x86_64-unknown-linux-musl"
rustflags = "-C target-cpu=native -C strip=symbols"

View File

@ -1,3 +1,5 @@
use std::time::Instant;
struct SField {
field: Vec<usize>,
fixed: Vec<usize>,
@ -401,9 +403,11 @@ impl SField {
#[inline(always)]
fn solve(&mut self) {
let now = Instant::now();
if !self.solve_backtracking() {
println!("there is no solution.");
}
println!("took {:.3}s", now.elapsed().as_secs_f64());
}
}