Thread tick time

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

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
Tabulous
Posts: 518
Joined: Fri May 03, 2013 12:02 pm
Has thanked: 7 times
Been thanked: 18 times

Thread tick time

Post by Tabulous »

in 2.6 you could use

Code: Select all

(uint32_t)tp->p_time 


to get the amount of time a thread had comsumed

in 3.0.3 you cant, you could use chThdGetTicksX but this is only available if you enable CH_DBG_THREADS_PROFILING, but if you enable this, you get errors about tickless mode, which i'm not using

So how do i do this ?
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Thread tick time

Post by Giovanni »

Just disable tickless mode if you don't need it, in chconf.h delta=0 and frequency=1000.

Giovanni
Post Reply