The judge of the State Court of Richmond County who has served the longest period of time in office as judge of said court shall be the chief judge of the State Court of Richmond County.