Each person affected by this chapter who at the time of entering the armed services was a member of this system, and has honorably served in the armed services of the United States, shall have added to the period of service as computed under this chapter, the period of service in the armed forces: PROVIDED, That such credited service shall not exceed five years.