Testing Indexing performance

Hi, I have a large project and I want to get some metrics on how long it takes to index. It seems like the IndexStoreDB package only read an index store that is already built. Is there a way to build and index store from scratch and see how long that takes?