Most Efficient Way to Refresh Time

I have a quick question, let’s say you’re trying to get the date/time of when a certain thing happens from the web (HTTPService). Instead of using a while loop to refresh and constantly make HTTP requests, what’s a more efficient way of doing this?

And by the way, I’m purposely not using os.time or os.date because I’m not trying to get the current time, I am getting the date/time of an event from the web, for example you can schedule things on a website and I want to do something like “Time Until Event” in minutes, but I don’t know a good way to refresh.

1 Like

Get the difference between what you grab as the time from online and the current os.time. Apply that difference to later os.times.

3 Likes

Thanks! That worked. 30 characters…

1 Like