add a delay time to a method