Home
last modified time | relevance | path

Searched refs:NanosecondsPerSecond (Results 1 – 4 of 4) sorted by relevance

/external/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/
DDurationPartial.cs46 public const int NanosecondsPerSecond = 1000000000; field in Google.Protobuf.WellKnownTypes.Duration
62 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()
DTimestampPartial.cs46 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()
/external/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/
DTimestampTest.cs99 …uration difference = new Duration { Seconds = 1999, Nanos = Duration.NanosecondsPerSecond - 5000 }; in Arithmetic()
/external/protobuf/csharp/src/Google.Protobuf/
DJsonParser.cs837 nanosToAdd = nanosToAdd - Duration.NanosecondsPerSecond; in MergeTimestamp()