Multiply

public static class TimeSpanEx {
    public static TimeSpan Multiply(this TimeSpan timeSpan, int multiplier) {
        return TimeSpan.FromTicks(timeSpan.Ticks * multiplier);
    }
}
Example:
var ts = timeSpan.Multiply(5);

Description

Multiplies a TimeSpan by a number (int)

Details

Double click on the code to select all.

 

;