Protecting Prince Harry and his family during visits to Canada cost Canadian taxpayers more than $334,000 over a period of less than four years.