Sleep for win/linux