No prisoner shall be compelled to labor more than 10 hours per day nor be subject to punishment for any refusal to labor beyond such limit; provided, that the 10 hours shall be the time embraced from the leaving to the return of the prisoner to his or her place of detention.