[corlib] Don't use DateTime.Now for measuring elapsed time
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Sun, 2 Jul 2017 11:02:31 +0000 (13:02 +0200)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Sun, 2 Jul 2017 21:31:34 +0000 (23:31 +0200)
commit2d9f497748f76b81f9b8121a4280621e13786e6d
tree9117d1c1cf1f840200c81ef1f2395337d38affda
parent86ccab69974eeec897abcefca7f5ec243bf0496a
[corlib] Don't use DateTime.Now for measuring elapsed time

Use Stopwatch or DateTime.UtcNow instead which aren't affected
by things like daylight saving time
mcs/class/corlib/System.Runtime.Remoting.Lifetime/Lease.cs
mcs/class/corlib/Test/Microsoft.Win32/RegistryKeyTest.cs
mcs/class/corlib/Test/System.IO/DirectoryInfoTest.cs
mcs/class/corlib/Test/System.Threading/ThreadPoolTest.cs
mcs/class/corlib/Test/System.Threading/ThreadTest.cs
mcs/class/corlib/Test/System.Threading/WaitHandleTest.cs