you probably want sleep 2 here in order to get at least one second.  how close sleep 1 is to one second is platform-dependent implementation...