Re:Debounce in Bash
by kadoban on Tuesday September 25, 2018 @12:28AM
(#18063604)
I wouldn't be worried about the performance cost of using `date +%s` personally, I'd be concerned about what happens when the user or an automated process changes the system time.
For example, what will happen in the debounce function if the user sets the system time backwards by a week after a limit has been set?
For example, what will happen in the debounce function if the user sets the system time backwards by a week after a limit has been set?