/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / [Timer] How to measure microtime ?

Username:     
Password:     
             

Forum

# 1   2010-06-03 09:53:49 [Timer] How to measure microtime ?

matmout
Member
From: Grenoble
Registered: 2010-05-10
Posts: 12

[Timer] How to measure microtime ?

Hello everyone,

I would like to know if it's possible to measure microtime ?

Im my project, I need to implement a retransmission timer. However, the only function that allow me to get time, RTC_GetTime, cannot be enought precise : the smaller time unit is the second while I need a slice of a second smile

Any ideas ?

Thank you in advance

Offline

 

# 2   2010-06-03 17:22:53 [Timer] How to measure microtime ?

diabolo38
Member
Registered: 2010-03-12
Posts: 50

Re: [Timer] How to measure microtime ?

i believe the Application handler get called  quite ofen  it migth not a very precise nor high period  but it could be enougth to build some tick counter base on that (if you code is not already blocking withint the app handler).
You also have a few timers available if precise time are to be measure  wink

Offline

 

Board footer