delay time from 0 to 1000