provided for in the foregoing sections shall consist in confining the
body of the offender within a barrel placed over his or her shoulders, in
the manner practiced in the army, such confinement not to continue longer
than twelve hours, and for such time within the aforesaid limit as shall
be fixed by the captain or chief of patrol who inflicts the penalty.