Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That makes sense, maybe sleep(rand(1.0 - time_spent))


Or just sleep(1.0 - time_spent)


Or just don't short circuit ever, and do the entire computation every time.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: