Keep track of timers for various parts of performing a query.

For now, we just have a thread that logs the data every 10 seconds.