diff options
-rw-r--r-- | src/mscorlib/src/System/TimeSpan.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mscorlib/src/System/TimeSpan.cs b/src/mscorlib/src/System/TimeSpan.cs index 35be47f25a..9166656d0f 100644 --- a/src/mscorlib/src/System/TimeSpan.cs +++ b/src/mscorlib/src/System/TimeSpan.cs @@ -292,6 +292,12 @@ namespace System return new TimeSpan(result); } + public TimeSpan Multiply(double factor) => this * factor; + + public TimeSpan Divide(double divisor) => this / divisor; + + public double Divide(TimeSpan ts) => this / ts; + public static TimeSpan FromTicks(long value) { return new TimeSpan(value); |