You can do the following:
TimeSpan duration = b - a;
There’s plenty of built in methods in the timespan class to do what you need, i.e.
duration.TotalSeconds
duration.TotalMinutes
More info can be found here.
You can do the following:
TimeSpan duration = b - a;
There’s plenty of built in methods in the timespan class to do what you need, i.e.
duration.TotalSeconds
duration.TotalMinutes
More info can be found here.