Assuming that his function Get Game Time in Seconds is returning an accurate number in order to determine X Start & X End, you would just add it before the Set Start Position and Set End Position. You would ignore, in your screenshot, the Normalize to Range, the X 2000 and the X Power nodes/variables.
But that would only allow you to do something after the press is done. If you want to do something while the press is occurring, then you would have to set it up differently. You would use the timer from the function Get Game Time in Seconds as is, and you would then add a branch, right after the X Start to see if the press has occurred for at least a certain amount of time. If True, raise flag to do action X, if False, do whatever else. You also have to keep in mind that once the player releases is finger, you will need something on the Release option in order to stop the action being done in the Pressed option if that action occured.