An ex-police sergeant who raped a woman twice, including once while he was on a break from work, has been jailed for 11 years.