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

Why is the time.sleep(1) needed inside the while loop?


Otherwise app would burn CPU like crazy...


Because that's one second resolution of the scheduler.




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

Search: