When driving at high speeds, always allow enough room to safely stop in emergencies by staying at least:

If you are driving at a speed of 30 mph or slower, a following time of two or three seconds may be enough to stop safely in the case of an emergency. However, at higher speeds, it is best to maintain a four-second following time.
DMV Writen Test