In order to trim oldest samples in the regression function, they need to be sorted in the data arrays from the oldest to newest.
Add a general support for tracking independent hardware clocks like PTP hardware clocks (PHC) or real-time clocks (RTC).