High accuracy phase-angle sensing