I have an array containing specific times and I want when the current time is one of those in the array to make an alert to the user (like an alarm system), I am using a timer now that checks it every 60 seconds, but is there any better way to do it, rather than a timer?
Share
Why don’t you use a timer (for each item in your array) that is set to fire at the desired time? instead of firing the timer every 60 seconds.
Assuming the app would be running all the time.