Hacker News new | ask | show | jobs
by cousin_it 4215 days ago
OK, then why not have the sensitive operation always take 100ms? If it finishes early, just sleep until the 100ms mark.
1 comments

And in case it takes more than 100ms or a widely variable amount of time: https://news.ycombinator.com/item?id=8691076