Every member of such police department who has stood civil service examination and has been passed by the civil service board, and whose names are [sic] on the payroll of such police department at the time of the passage of said act and future members ofsuch department may, as a matter of right, retire from active service, provided he shall have served 25 years in active service at the time of his retirement. The time of service shall be determined from the payroll records in the office of the city comptroller.