Judges pro tempore shall serve without compensation from any public treasury, but it shall be lawful for the parties to agree upon and express in their written stipulation any mode or amount of compensation, together with any further agreement as to the taxing of the same as costs.
Va. Code § 17.1-111