Page 1 of 1

Thread tick time

Posted: Fri Dec 04, 2015 3:59 pm
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 ?

Re: Thread tick time

Posted: Fri Dec 04, 2015 4:35 pm
by Giovanni
Just disable tickless mode if you don't need it, in chconf.h delta=0 and frequency=1000.

Giovanni