Hi F18viper,

In PBP there is no such a function that counts the ms that I'm aware of. What you can do is set a TIMERx interrupt and keep track of the time this way. You can place a counter in the interrupt routine and know how many times the interrupt routine has been visited.

Robert