also print time taken