Menu

#Utcnow

1 post

Feed
1 of 1 post
I Stamped Every Row With DateTime.Now and Paid Twice
📰
0Read More

I Stamped Every Row With DateTime.Now and Paid Twice

DEV Community: dotnet·Sukhpinder Singh·10 days ago
#eHjJP2K9
#devtodotnet#devto#dev#time#utcnow

DateTime.Now is DateTime.UtcNow plus a trip through your local time zone rules, and that trip isn't free in a hot loop. I counted: on a box with a real time zone it roughly doubles the cost of reading the clock.

15s