Be it further enacted, that the mayor and council of said city shall have the right, power, and authority to employ, at such times as they may deem necessary, an auditor to examine and audit the books of the city and each department thereof, and to pay a reasonable compensation therefor.