added function to make elapsed time regressor