Is it simply so you can see (on the shutter curtains) when the camera is correctly positioned, or is there some other reason?
Yep exactly that. Also the Mk 3 or 4 version, if I can be bothered, will have additional sensors to detect flash sync. It will require another two at the extremes of the film gate & it will also give curtain bounce warnings, without having to reposition the sensors or camera.
It will be far easier to mount these sensors in a project box with holes drilled at 32mm and 36mm centres, which in turn will be placed directly onto the camera gate.
This is a simple shutter tester (that works) so if not used correctly, sensors reversed, or waggling paper in front of the sensors, then yes there will be wraparounds on the maths.
It is quite easy to deal with the microsecond wraparound & there are various ways, but for me, this is not an issue. Providing the maths subtracts & no addition calculation, then there is no error when the microsecond clock wraps around.
Again, easy enough to store a number of samples & display them. The screen could prompt you through the process. 'fire shutter' then 'fire for 2nd time' etc and then display the results as a block, average etc.
It maybe better to do a cumulative average, each firing gets added and mathed (is that a word?) so you can fire 1, 2, 5 or 10 etc and the maths recalculates each time. Add a push-button to start from zero again, when changing shutter speed for example.
However, for my needs, this offers no real advantage, but complication either having to fire 10 shots when I just want one, or pressing buttons to reset.
I have updated the code to detect crossed sensors & paper being waved in front of the sensors. Will add it to a post soon.
For playing about with, get a piece of card and cut a slot in it, 20mm wide, or so. You can then move this back and forth to simulate a shutter. I have one with a second smaller slot cut, which adds shutter bounce simulation.