RTC on RTT usually runs at a frequency greater than 1 Hz, so sub-second precision is available. Add a function to get the current RTC timestamp together with it's sub-second component.