count and pulse length of eng. injector

Can the ardunio hand the count and pulse length of eng. injector? I would like to calculate the MPG and this would be a very accurate way to do it.