power factor meter

Hello ^ _ ^
My project is a power factor regulator using arduino uno card
I created 2 card detection zero crossing so i have this impuls

So I want to calculate the period T between each two pulses
The two inputs used are analog inputs

Post your code.

Please Read this (these) Post (s)

Power Factor Regulator? Or do you just want to calculate power factor for a power factor meter?