Asynchronous phase comparator for characterization of devices and PMU calibrator