Always show Rust test timings

Matches the Haskell now that we're no longer using Sydtest.
This commit is contained in:
George Thomas 2026-01-12 18:27:53 +00:00
parent 2462a30b1d
commit b7cda0a0ec

View File

@ -9,7 +9,7 @@ use puzzles::day5;
use puzzles::day6;
use puzzles::day7;
use std::fs;
use std::time::{Duration, Instant};
use std::time::Instant;
const PUZZLES: [&dyn SomePuzzle; 7] = [
&day1::PUZZLE,
@ -42,9 +42,7 @@ fn main() {
n,
if expected == output {
let mut s = String::from("OK");
if elapsed > Duration::from_millis(10) {
s.push_str(&format!(" ({:?})", elapsed));
}
s.push_str(&format!(" ({:?})", elapsed));
s
} else {
format!("expected {}, got {}", expected, output)