If the delay isn't due to malware, it can often be a problem with some part of WIndows networking. Malware may have corrupted some of the files. You could try running the System File Checker. If that doesn't work, it might be time for either a Repair Install or a clean install of WIndows. However, there is one more thing you might try. It is also possible a failing hard drive could be the problem. Running the drive manufacturer's diagnostics might show something.