DateTime.Now performance


The method DateTime.Now appears to be quite slow, and this method is used in some multiple places in the SmartThreadPool code.
DateTime.Now calls DateTime.UtcNow and then converts the given value into the user time zone.

As the smart thread pool don't need to manage time zones (the date time is just used for internal processings), I suggest to transform all the DateTime.Now to DateTime.UtcNow. The change is really fast and have no impact on any method / class signature.
Closed Aug 22, 2012 at 5:20 AM by
Added in previous versions