You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The .NET struct has these properties which are very convenient for use cases where you want to subtract two DateTime and have the total time that an operation took, for example.
As all of them are based in the already existing ticks value that represents the TimeSpan, there is no severe penalty on adding these which are calculated only when, and if, called.
The text was updated successfully, but these errors were encountered:
The .NET struct has these properties which are very convenient for use cases where you want to subtract two DateTime and have the total time that an operation took, for example.
TotalDays
TotalHours
TotalMinutes
TotalSeconds
TotalMilliseconds
As all of them are based in the already existing ticks value that represents the TimeSpan, there is no severe penalty on adding these which are calculated only when, and if, called.
The text was updated successfully, but these errors were encountered: