Questions about measuring time intervals

Thanks! I need to measure time intervals on the message thread and want to know which method can give me a time value which is both unaffected by changes to the system clock AND will not wrap down to 0 after just some days or months after system startup.

With regard to the idea of using a highResolutionTimer for async paint-requests to the message thread, I’m under the impression that that would be of little help: