Is there a way to announce the stopwatch’s current value? I’m trying to create a macro that will cast a spell and tell me how much time has passed since its previous cast. So the macro would look something like this:
announce stopwatch time
cast spell
restart stopwatch
1 Like
StopwatchTicker.timer will get the current time elapsed on the stopwatch:
/run print("Stopwatch is at",StopwatchTicker.timer)
To display in a time format:
/run local t=StopwatchTicker.timer print(format("Stopwatch is at %02d:%02d",floor(t/60),t%60)) Stopwatch_Clear() Stopwatch_Play()
/cast spell
If you want to skip the stopwatch part entirely:
/run local t=time()-(LcT or time()) print(format("You last hit this %d:%02d ago",floor(t/60),t%60)) LcT=time()
/cast spell
1 Like