Added ThreadWaiter class which displays elapsed time.