Searched refs:NanosecondsPerSecond (Results 1 – 4 of 4) sorted by relevance
46 public const int NanosecondsPerSecond = 1000000000; field in Google.Protobuf.WellKnownTypes.Duration62 internal const int MaxNanoseconds = NanosecondsPerSecond - 1;63 internal const int MinNanoseconds = -NanosecondsPerSecond + 1;167 int extraSeconds = nanoseconds / NanosecondsPerSecond; in Normalize()169 nanoseconds -= extraSeconds * NanosecondsPerSecond; in Normalize()175 nanoseconds -= NanosecondsPerSecond; in Normalize()180 nanoseconds += NanosecondsPerSecond; in Normalize()
46 internal const int MaxNanos = Duration.NanosecondsPerSecond - 1;175 int extraSeconds = nanoseconds / Duration.NanosecondsPerSecond; in Normalize()177 nanoseconds -= extraSeconds * Duration.NanosecondsPerSecond; in Normalize()181 nanoseconds += Duration.NanosecondsPerSecond; in Normalize()
99 …uration difference = new Duration { Seconds = 1999, Nanos = Duration.NanosecondsPerSecond - 5000 }; in Arithmetic()
837 nanosToAdd = nanosToAdd - Duration.NanosecondsPerSecond; in MergeTimestamp()