Design of a low power time to digital converter for flow metering applications