Searched refs:FromTimeSpan (Results 1 – 3 of 3) sorted by relevance
93 public void FromTimeSpan() in FromTimeSpan() method in Google.Protobuf.WellKnownTypes.DurationTest95 … Assert.AreEqual(new Duration { Seconds = 1 }, Duration.FromTimeSpan(TimeSpan.FromSeconds(1))); in FromTimeSpan()96 …eEqual(new Duration { Nanos = Duration.NanosecondsPerTick }, Duration.FromTimeSpan(TimeSpan.FromTi… in FromTimeSpan()
77 return Duration.FromTimeSpan(timeSpan); in ToDuration()
103 public static Duration FromTimeSpan(TimeSpan timeSpan) in FromTimeSpan() method in Google.Protobuf.WellKnownTypes.Duration