Timer/PCA exercises
Time interval measurement using the PCA
Write a function that can measure the time difference between two successive function calls. It should read the counter value when it is called and it should remember the counter value of the previous call also. The function should return the elapsed time in the units of the period of the counter.