Fix broken optimizing command

See #331

* add time to log output
Merge pull request #522 from lobid/issue-331_optimizing_index

Fix broken optimizing command