limit the time variable to the min max legal value for unsigned long