All expenses of such quarantine shall be paid out of the treasury of such city, town or village, or of the county, township or school district, as the case may be, and for the performance of their respective duties, the police officers, town marshals and constables, respectively, shall receive such fees and mileage as is provided by law for the performance of their other like duties.