Hi @abhijith_r
The recommendation to use RTC is normally until seconds. If you want to get the milliseconds, I suggest you use another timer for example the PIT.
RTC supports a resolution of 1μs with a high-speed internal oscillator clock, so it is possible to have a resolution of milliseconds. If you want to implement it with this timer, it would already be your implementation, since it is not an application that we give.