We used to use the "get up, use up spells, rest 8 hours, study/pray, go again" mechanic, but we switched over to "x spells per calender day". So, everything resets at midnight, with divine casters preparing theirs at specific times during the day (dependent upon deity) and arcane casters able to...