Development of a FPGA based high-resolving time-to-digital converter for fast SNSPD readout