Question about setting the SignalTime of ElapsedEventArgs #44785
-
When I read the source codes of System.Timers.Timer, I notice this line:
And in the constructor of ElapsedEventArgs:
Is that necessary or should be optimized? Any comments welcomed. |
Beta Was this translation helpful? Give feedback.
Answered by
stephentoub
Nov 17, 2020
Replies: 1 comment 2 replies
-
This is a holdover from how it was constructed in .NET Framework. It could be changed to just pass DateTime.UtcNow and have the constructor accept and store a DateTime, rather than roundtripping through filetime. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
LeaFrock
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a holdover from how it was constructed in .NET Framework. It could be changed to just pass DateTime.UtcNow and have the constructor accept and store a DateTime, rather than roundtripping through filetime.