tcrt5000l input, serial print time high output

Hi

Can anyone point me to an example of code for my project.
I am new at this very new, so bear with me.
I simply want to detect the passing of a roller ball with the trct5000l and to print out via the serial printer the time the output was high.( The time being proportional to speed, which is my interest). Subsequent balls times being printed on the next line. I have a trc5000l and an Arduino UNO, but not the brains to find or sort the code out. Thanking you in anticipation.

If you are going to progress with the Arduino you need to learn some basics such as the examples in the IDE. If, however, you want someone to write the code for you then you would be better off asking in the Gigs and Collaborations section.