282 . A surveyor of ships in the execution of his duties may go on board any ship at all reasonable times, and inspect the same or any part thereof, or any of the machinery, boats, equipments, or articles on board thereof, or any certificates of the master, mates, or engineers, to which the provisions of this Act or any of the regulations made under this Act apply, not unnecessarily detaining or delaying the ship from proceeding on any voyage, and if in consequence of any accident to the ship or for any other reason he considers it necessary so to do, may require the ship to be taken into dock for the purpose of surveying the hull thereof. *Powers of surveyor of ships for purpose of survey of ships.*