select() for 20ms instead of sleeping for 20ms