AC and DC current measurement