The fees of referees are such reasonable sum as the court may fix for the time spent in the business of the reference; but the parties may agree, in writing, upon any other rate of compensation, and thereupon such rates shall be allowed.
Ca. Civ. Proc. Code § 1023