I did timings by adding stuff between lines like:
int readthrottle = micros();
and at the end of the loop print all of them in one line, substracting manually gave me the readings...
Sorry 4 misleading you, I am pretty busy with labour so most of the time I do computer stuff early in the morning before going to work.
I meant TDP or TDC: Top Dead Center, when the piston is in it's most uprising/compression point.
Also I don't mean alternator but distributor.
So I can give an electronical pulse at exactly the moment I want to inject, in the past I used almost the same setup with an NE555 as timer for injection duration but since I got involved with the arduino while building a data logger I thought it was a nice idea to use it for injecting.
In my old setup the distributor
was connected to the throttle so when giving more throttle the timing would advance from -10 to -50 degree TDP.
Actually there is nothing wrong with that, in my current conventional plunger Bosch A-pump I modified the plungers by grinding the top in an angle and the helix flat so when giving more throttle injection moment will advance. (normally the top of the plunger is flat, halfway down there is a groove in an angle (the helix) that is connected via another groove to the top, when the plunger moves upwards the helix will pass a hole and bleeds fuel from the top so at that point the injection stops. Since that helix is under an angle you can turn the plunger so the effective stroke of the plunger is extended and therefore delivering more fuel. http://transportation.centennialcollege.ca/oduffy/fuels/HD%20fuels%203/inline.pdf)
The other timers also all connect to a pin so that would mean they are not useable.
When looking at the example code it looks like the timers can be used without using the pin attached to it, no clue.
Also no clue how to use the other 3...
If I can't find out I will use a microsecond delay, bad coding leaving the arduino doing a lot of nothing but see no reason why it should not work.