aspects of the disclosure provide a method . the method includes regulating a time for turning on a switch to transfer energy via a transformer in a first control mode , determining a turn - on time for a second control mode based on the regulated time in the first control mode , and controlling the switch based on the determined turn - on time in the second control mode to transfer energy via the transformer .