Latency on Windows Server (Datacenter) in compare with normal windows

  asynchronous, c++, server, windows

I have created a windows application which does a task in an specific time, For example in 5 secs later.

Now I tested it in Normal windows (My personal windows which is Windows 10 Enterprise LTSC) and it gave me 0 millisecond latency at the most of the time. I did it at a cloud server too, Which runs Windows 2016 Datacenter, but there i saw that the latency is more than 5 milliseconds and sometimes up to 15.

Why this happens? Is the error from the server?

Server specs:

CPU: 4 cores | RAM: 8 GB

Personal device specs:

CPU: Core i5 3230M | RAM: 8 GB

Source: Windows Questions