From 25b36be0732872e61da8058ff9ee1276fc279a28 Mon Sep 17 00:00:00 2001 From: Antoine Gersant Date: Sat, 18 Jan 2020 17:41:57 -0800 Subject: [PATCH] More accurate index duration display --- src/index/update.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index/update.rs b/src/index/update.rs index d47b376..3ae790c 100644 --- a/src/index/update.rs +++ b/src/index/update.rs @@ -25,7 +25,7 @@ pub fn update(db: &DB) -> Result<()> { populate(db)?; info!( "Library index update took {} seconds", - start.elapsed().as_secs() + start.elapsed().as_millis() as f32 / 1000.0 ); #[cfg(feature = "profile-index")] flame::dump_html(&mut fs::File::create("index-flame-graph.html").unwrap()).unwrap();