Hacker News new | past | comments | ask | show | jobs | submit login

How strange. Why didn't they use a timer? That is, on any machine you know how long 1 second is. From a developer perspective that doesn't change if you bump up the CPU clock speed, else "clocks" wouldn't work.



Loop counting is usually done for fast (and not so time dependent) timers

Yeah, an OS timer is the "official" solution, but that might not have been practical for a multitude of reasons




Consider applying for YC's W25 batch! Applications are open till Nov 12.

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

Search: