Patent ID: 8358426

Claim:
An image forming apparatus comprising: a setting part configured to set at least one of a first waiting time and a second waiting time, the first waiting time from a completion of ejecting operation of one sheet of recording paper to a start of supply of a subsequent sheet of recording paper in a one-side printing, the second waiting time from a completion of an ejecting operation of one sheet of recording paper to a start of resupply of said one sheet of recording paper in both-side printing; a recording head maintenance part configured to start a maintenance operation of a recording head simultaneously with a start of a counting operation of said first or second waiting time; and a determining part configured to detect a difference in time length between said first or second waiting time, a maintenance time required by said maintenance operation and a cap timer time, which is a time during which a nozzle of said recording head is allowed to be maintained in a state where the nozzle is uncapped, and to determine a time of restarting a printing operation after execution of said maintenance operation based on the detected difference.