Hi,
usually we use systick to count program execution time. It is faster and more close to cpu core. Before you execute a program, you read the timer, and after execution, read again. The execution time is the difference.
Of course you can use other timer, such as PIT, LPTMR or PTM. But almost nobody use them in that way.
Regards,
Jing