Pi_flori_17
Posts: 7
Joined: Fri Oct 14, 2016 4:00 pm

Raspberr pi 3 : Accuracy of function millis() in C

Sun Jan 15, 2017 2:03 am

hello ,

i progammed a code for time measuremnts with a light barrier, where the endtime is displayed on a WIFI linked android smartphone.

For the time-measurement of start - and endtime i use the function millis() from the wiringpi library.

My Question is : How accurately is my measurement ?( I display the time in seconds with 3 decimal places.)

Does the function millis() of the library wiringpi Pi really use the Raspberr pi3 1,2 GHz clock signal ?
What is the frequency of the interrupt thats behind the function millis() in this case ?

Does millis() work for the raspberry pi 3 in other way because of the 1,2GHz Clock as it works for arduino unoR3 for instance with 16Mhz Clock ??

I would be very happy if someone could explain this to me .

Greetings from Austria

User avatar
rpdom
Posts: 17173
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Raspberr pi 3 : Accuracy of function millis() in C

Sun Jan 15, 2017 9:26 am


Return to “Beginners”