Added "CalculateExtraTime" function to TLKThread, which returns the number of seconds (double-precision floating point value) between the time of the call and the scheduled time for the next Tick.