How to use the value of a variable when a timer event is set, not when it executes

This thread talks about the time clock that is the time the program has been running.

You want to use that info for your X