Refined metastability characterization using a time-to-digital converter. (January 2018)