diff --git a/Cargo.toml b/Cargo.toml index 46cca78d..77f18b03 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -42,7 +42,7 @@ homepage = "https://alphaville.github.io/optimization-engine/" repository = "https://github.com/alphaville/optimization-engine" # Version of this crate (SemVer) -version = "0.7.6" +version = "0.7.7" edition = "2018" diff --git a/src/core/panoc/panoc_optimizer.rs b/src/core/panoc/panoc_optimizer.rs index 2928280f..ae2c019c 100644 --- a/src/core/panoc/panoc_optimizer.rs +++ b/src/core/panoc/panoc_optimizer.rs @@ -123,7 +123,7 @@ where ConstraintType: constraints::Constraint + 'life, { fn solve(&mut self, u: &mut [f64]) -> Result { - let now = time::Instant::now(); + let now = instant::Instant::now(); /* * Initialise [call panoc_engine.init()] @@ -218,7 +218,7 @@ mod tests { let mut panoc_cache = PANOCCache::new(n_dimension, tolerance, lbfgs_memory); let problem = Problem::new(&bounds, cost_gradient, cost_function); let mut panoc = PANOCOptimizer::new(problem, &mut panoc_cache).with_max_iter(max_iters); - let now = std::time::Instant::now(); + let now = instant::Instant::now(); let status = panoc.solve(&mut u_solution).unwrap(); println!("{} iterations", status.iterations());