pulse-height-to-time converter