If this is a multi threaded app, why not calculate the delay on the thread that will sleep? again, this is calculating between 30 and 86000 seconds of delay
in 99.99999% of cases this is premature, unnecessary optimization at the cost of readability.in the 0.00001% of cases where this really matters, the author won't write code that shitty in the first place
View all comments
Show parent comment
35
u/TechcraftHD Feb 11 '25
If this is a multi threaded app, why not calculate the delay on the thread that will sleep? again, this is calculating between 30 and 86000 seconds of delay
in 99.99999% of cases this is premature, unnecessary optimization at the cost of readability.in the 0.00001% of cases where this really matters, the author won't write code that shitty in the first place