✅ Time of method differs between Stopwatch.GetTimestamp and DateTime.Now
Hi there, I have to codes, that differs only in the way that they are recording time of the same operation. It there a big deal that they are once use DataTime and TimeSpan and other Stopwatch.GetTimeStamp?
9 Replies
Stopwatch will, in general, be the most accurate I believe
Damn, this inaccuracy is big af
If it's it
If you want to benchmark execution time of something, though Benchmark.NET will be the most accurate
Nah, it's just a simple project for University
The Prof gave sample with Timestamp, and i was curious why DataTime had this much longer "execution" time
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
you can also do
and you need no objects for it
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
TIL that method
added .NET 7
neat
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View