diff --git a/crates/argmin/src/core/executor.rs b/crates/argmin/src/core/executor.rs index a4c546504..545849b38 100644 --- a/crates/argmin/src/core/executor.rs +++ b/crates/argmin/src/core/executor.rs @@ -70,7 +70,7 @@ where checkpoint: None, timeout: None, ctrlc: true, - timer: true, + timer: false, } } @@ -383,9 +383,9 @@ where self } - /// Enables or disables timing of individual iterations (default: enabled). + /// Enables or disables timing of individual iterations (default: false). /// - /// Setting this to false will silently be ignored in case a timeout is set. + /// In case a timeout is set, this will automatically be set to true. /// /// # Example /// @@ -766,7 +766,7 @@ mod tests { let problem = TestProblem::new(); let timeout = std::time::Duration::from_secs(2); - let executor = Executor::new(problem, solver); + let executor = Executor::new(problem, solver).timer(true); assert!(executor.timer); assert!(executor.timeout.is_none()); diff --git a/crates/argmin/src/core/state/iterstate.rs b/crates/argmin/src/core/state/iterstate.rs index d766b49e9..cc7899625 100644 --- a/crates/argmin/src/core/state/iterstate.rs +++ b/crates/argmin/src/core/state/iterstate.rs @@ -82,6 +82,8 @@ pub struct IterState
{
pub max_iters: u64,
/// Evaluation counts
pub counts: HashMap