Category : asp.net-core-3.1

I am hoping someone can explain to my why the function below produces incredibly different results on linux vs windows. If I have this little snippet of code: var elapsed = Stopwatch.GetTimestamp() / TimeSpan.TicksPerMillisecond; Thread.Sleep(1001); // lets sleep for one second var ts = Stopwatch.GetTimestamp() / TimeSpan.TicksPerMillisecond; var result = ts – elapsed > 10000L ..

Read more