Sec. 5.01. SERVICE. Except as provided by Section 5.02 of this Act, a member shall receive credit for service during all periods of employment by the municipality as a police officer. Service credit is used in determining the eligibility for benefits and the amount of benefits to which the member is entitled under this Act.