Measuring speed with 2 PIR sensors

Thank you for your answer.
Target is to measure cars speed. It does not have to be very accurate, because this is "scientific experiment" and I need to find out how much accurate PIR sensors could be.
What I am hoping to get here is some code examples, because I am total newbie in Arduino and coding.