I used sleep function to check every 5 sec the number of files in certain directory.
now, when I run certain process that sends the files from the directory, my script slows down the process. When I stopped the script, the process was running faster again.
Is it this from the sleep function?