In basketball, the offense must shoot the ball before the clock counts down to zero. If they do not, they offense loses posession. In the NBA, the shot clock is 24 seconds long. In college and international competition, it is 45 seconds.