MWW: Made the definition of millis_from_sys_start contingent on whether the thread has a periodic dispatcher.