If someone applies for a dependent visa of their partner who is a British Citizen can they apply for ILR after 2 years on a long resident basis? or will they have to wait for 5 years as the clock will reset again?

Any comments will be appreciated.