usleep prevents ppmviewer from hogging CPU