There is a problem with Windows Server 2016/2019 In a typical cycle "for" 1000 repetitions, with a pause of 1 ms.
for (int i = 0; i <1000; i ++)
{
Thread.Sleep (1);
}
The server processes each Sleep cycle - 15 ms. And since 1000 requests. Instead of 1000 ms. (1 sec) 15000 ms is executed. (15 sec)
On the home PC is all right. Only on the server is this problem. I suspect that the CPU is to blame.