pass block to time method