When an execution is issued upon a judgment for a penalty, the officer issuing it shall endorse thereon the real debt and the time from which interest is to be calculated.