Towards picosecond resolution with single-photon avalanche diodes