add logging of elapsed time