Well it's working Ok. managed to work it out from examples.
1) Just created a thread with
pthread_t newThreadName;
2) Then "attached" (not sure to what's the expression) the newThreadName to a function with pthread_create
3) Then just added some timing logic within a loop in the new function.
...
If someone knows other ways please say so.
Thank.