An attorney, juror, or officer, who is in habitual attendance on the court for the court session at which the attorney, juror, or officer is examined as a witness, shall be entitled to but one day’s attendance.