Can you round a .NET TimeSpan object?
TimeSpan
I have a Timespan value of: 00:00:00.6193789
Timespan
Is there a simple way to keep it a TimeSp
TimeSp
My solution:
static TimeSpan RoundToSec(TimeSpan ts) { return TimeSpan.FromSeconds((int)(ts.TotalSeconds)); }