Fully-integrated multifunctional fast time to amplitude converter for high-performance timing applications