Time measurement between two ISRs, general idea?

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: barthess, RoccoMarco, utzig, lbednarz, tfAteba

horstman
Posts: 1
Joined: Sun Jan 13, 2019 8:32 pm

Time measurement between two ISRs, general idea?

Postby horstman » Mon Jan 14, 2019 9:00 am

Hello!

I would like to stop the time (in seconds) with a timer between two differents ISRs.
The first ISR should start, the second should stop the timer.
Could You give me a general idea, which approach would be the best for such a problem?

Thank You!
Horst

User avatar
Giovanni
Site Admin
Posts: 11472
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 450 times
Been thanked: 375 times
Contact:

Re: Time measurement between two ISRs, general idea?

Postby Giovanni » Mon Jan 14, 2019 10:39 am

Hi,

If you need to measure time then use the TM API (Time Measurement), no need to use timers and it is clock cycle accurate.

Giovanni


Return to “General Support”

Who is online

Users browsing this forum: No registered users and 6 guests