Are you a Canadian citizen? If so, then the immigration officer was right. While the PR rules require your wife to be present in Canada for two years out of five, time spent married to a Canadian citizen counts as time physically present in Canada. However, if you're a permanent resident...