Does anyone know how to reduce CPU usage of a polling program running in Linux? The program is basically a polling loop that sleeps for a short period if there is no activity in that loop. On my system the select and nanosleep functions have a granularity of ~10ms (I'm assuming this is due to a scheduler of 100Hz tick rate). Is there a way to sleep for around 1ms (precision is not important, but order of magnitude is) without destroying the RTC??
Thanks for any info!