In each case when judgment is recovered pursuant to this chapter, it also shall include the costs of the action, and it shall direct that if the same is not paid, the defendant shall be committed to the county jail of the proper county there to be imprisoned for a specified time, not exceeding six months. Such period shall be fixed by the court in view of all the circumstances of the case, or until otherwise discharged pursuant to law. In such case a commitment shall issue as in an ordinary criminal action. This section shall not prevent the enforcement of any such judgment by execution at any time within one year from its rendition.
N.D.C.C. § 32-14-06