A greater resistance generates more heat. The longer the time period, the more heat is generated. The current, i.e. the higher the current, the more heat is generated.