by measuring or by comparing the phase of generated current or voltage