More accurate index duration display

This commit is contained in:
Antoine Gersant 2020-01-18 17:41:57 -08:00
parent f9a6d6b6d4
commit 25b36be073

View file

@ -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();