Connecting Timer to Clickable Feature in Graph

Is there a way to initiate a timer from a clickable object in a graph? I am familiar with making a button and doing timeSincePress, but I’d like to define a variable as the time since an object in a graph has been clicked.

Slide 2 of this

Any help would be appreciated!

I think this should be possible using a Ticker, which is part of a Graph in Desmos, but I’m not sure exactly how (I’ve never used Tickers myself). The following link may help:

1 Like

Here’s a solution … I think you can work with it …
https://www.desmos.com/calculator/zbicsifmus

1 Like

I think I may be able to make this work. I am not familiar with tickers that much. Could you explain what the d in your update time function is doing?
Screenshot 2024-10-21 at 6.50.53 PM

It is not actually just a ‘d’ … it’s ‘dt’ all together … It’s a special notation that you can use only inside the ticker and gives you the elapsed time from the last time that ‘Run’ was called. So you can add all the dt’s and get the total elapsed time from the start … U_updateTime(x) = t->t+x, so that’s what it does. So now t represents the total elapsed time and you can use it as you want.

1 Like

Thanks so much! I’m going to work on this and send the graph within the week!