Then, the ECU 110 outputs the fuel-injection-valve open time TAU (S2040) and temporarily terminates this routine.One example of the control that is implemented in the second embodiment with the above-described structure is illustrated in the timing chart in FIG. 21.