/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/WellKnownTypes/ |
D | DurationTest.cs | 43 Assert.AreEqual(TimeSpan.FromSeconds(1), new Duration { Seconds = 1 }.ToTimeSpan()); in ToTimeSpan() 44 Assert.AreEqual(TimeSpan.FromSeconds(-1), new Duration { Seconds = -1 }.ToTimeSpan()); in ToTimeSpan() 58 Assert.AreEqual(new Duration { Seconds = 2, Nanos = 100000000 }, in Addition() 59 … new Duration { Seconds = 1, Nanos = 600000000 } + new Duration { Nanos = 500000000 }); in Addition() 60 Assert.AreEqual(new Duration { Seconds = -2, Nanos = -100000000 }, in Addition() 61 … new Duration { Seconds = -1, Nanos = -600000000 } + new Duration { Nanos = -500000000 }); in Addition() 62 Assert.AreEqual(new Duration { Seconds = 1, Nanos = 100000000 }, in Addition() 63 … new Duration { Seconds = 1, Nanos = 600000000 } + new Duration { Nanos = -500000000 }); in Addition() 66 Assert.AreEqual(new Duration { Seconds = 1 }, in Addition() 67 … new Duration { Seconds = 1, Nanos = -500000000 } + new Duration { Nanos = 500000000 }); in Addition() [all …]
|
D | TimestampTest.cs | 45 AssertRoundtrip(new Timestamp { Seconds = -62135596800 }, utcMin); in FromAndToDateTime() 46 AssertRoundtrip(new Timestamp { Seconds = 253402300799, Nanos = 999999900 }, utcMax); in FromAndToDateTime() 49 …AssertRoundtrip(new Timestamp { Seconds = -1, Nanos = 999000000 }, new DateTime(1969, 12, 31, 23, … in FromAndToDateTime() 50 …AssertRoundtrip(new Timestamp { Seconds = 3600 }, new DateTime(1970, 1, 1, 1, 0, 0, DateTimeKind.U… in FromAndToDateTime() 51 …AssertRoundtrip(new Timestamp { Seconds = -3600 }, new DateTime(1969, 12, 31, 23, 0, 0, DateTimeKi… in FromAndToDateTime() 57 … var t1 = new Timestamp { Seconds = 1, Nanos = 1000000 + Duration.NanosecondsPerTick - 1 }; in ToDateTimeTruncation() 60 … var t2 = new Timestamp { Seconds = -1, Nanos = 1000000 + Duration.NanosecondsPerTick - 1 }; in ToDateTimeTruncation() 71 var value = new Timestamp { Seconds = seconds, Nanos = nanoseconds }; in ToDateTime_OutOfRange() 83 var value = new Timestamp { Seconds = seconds, Nanos = nanoseconds }; in ToDateTime_ValidBoundaries() 97 Timestamp t1 = new Timestamp { Seconds = 10000, Nanos = 5000 }; in Arithmetic() [all …]
|
/third_party/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/ |
D | DurationTest.cs | 43 Assert.AreEqual(TimeSpan.FromSeconds(1), new Duration { Seconds = 1 }.ToTimeSpan()); in ToTimeSpan() 44 Assert.AreEqual(TimeSpan.FromSeconds(-1), new Duration { Seconds = -1 }.ToTimeSpan()); in ToTimeSpan() 58 Assert.AreEqual(new Duration { Seconds = 2, Nanos = 100000000 }, in Addition() 59 … new Duration { Seconds = 1, Nanos = 600000000 } + new Duration { Nanos = 500000000 }); in Addition() 60 Assert.AreEqual(new Duration { Seconds = -2, Nanos = -100000000 }, in Addition() 61 … new Duration { Seconds = -1, Nanos = -600000000 } + new Duration { Nanos = -500000000 }); in Addition() 62 Assert.AreEqual(new Duration { Seconds = 1, Nanos = 100000000 }, in Addition() 63 … new Duration { Seconds = 1, Nanos = 600000000 } + new Duration { Nanos = -500000000 }); in Addition() 66 Assert.AreEqual(new Duration { Seconds = 1 }, in Addition() 67 … new Duration { Seconds = 1, Nanos = -500000000 } + new Duration { Nanos = 500000000 }); in Addition() [all …]
|
D | TimestampTest.cs | 45 AssertRoundtrip(new Timestamp { Seconds = -62135596800 }, utcMin); in FromAndToDateTime() 46 AssertRoundtrip(new Timestamp { Seconds = 253402300799, Nanos = 999999900 }, utcMax); in FromAndToDateTime() 49 …AssertRoundtrip(new Timestamp { Seconds = -1, Nanos = 999000000 }, new DateTime(1969, 12, 31, 23, … in FromAndToDateTime() 50 …AssertRoundtrip(new Timestamp { Seconds = 3600 }, new DateTime(1970, 1, 1, 1, 0, 0, DateTimeKind.U… in FromAndToDateTime() 51 …AssertRoundtrip(new Timestamp { Seconds = -3600 }, new DateTime(1969, 12, 31, 23, 0, 0, DateTimeKi… in FromAndToDateTime() 57 … var t1 = new Timestamp { Seconds = 1, Nanos = 1000000 + Duration.NanosecondsPerTick - 1 }; in ToDateTimeTruncation() 60 … var t2 = new Timestamp { Seconds = -1, Nanos = 1000000 + Duration.NanosecondsPerTick - 1 }; in ToDateTimeTruncation() 71 var value = new Timestamp { Seconds = seconds, Nanos = nanoseconds }; in ToDateTime_OutOfRange() 83 var value = new Timestamp { Seconds = seconds, Nanos = nanoseconds }; in ToDateTime_ValidBoundaries() 97 Timestamp t1 = new Timestamp { Seconds = 10000, Nanos = 5000 }; in Arithmetic() [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/time/ |
D | duration_test.cc | 67 constexpr absl::Duration d1 = absl::Seconds(1); in TEST() 68 static_assert(d1 == absl::Seconds(1), "Seconds(1)"); in TEST() 90 constexpr absl::Duration sec = absl::Seconds(1); in TEST() 95 EXPECT_EQ(zero, absl::Seconds(0)); in TEST() 100 EXPECT_EQ(min, absl::Seconds(60)); in TEST() 106 EXPECT_GT(inf, absl::Seconds(kint64max)); in TEST() 107 EXPECT_LT(-inf, absl::Seconds(kint64min)); in TEST() 108 EXPECT_LT(-inf, absl::Seconds(-kint64max)); in TEST() 147 TEST_DURATION_CONVERSION(Seconds); in TEST() 177 const absl::Duration sec = absl::Seconds(N); in TestToConversion() [all …]
|
D | duration_benchmark.cc | 65 benchmark::DoNotOptimize(absl::Seconds(i)); in BM_Duration_Factory_Seconds() 119 benchmark::DoNotOptimize(absl::Seconds(d)); in BM_Duration_Factory_DoubleSeconds() 157 absl::Duration d = absl::Seconds(std::numeric_limits<int64_t>::max()); in BM_Duration_Subtraction() 188 absl::Duration d = absl::Seconds(1); in BM_Duration_Division_Fixed() 198 absl::Duration d = absl::Seconds(1); in BM_Duration_Division_Double() 263 a += absl::IDivDuration(absl::Seconds(i), absl::Seconds(1), &ignore)); in BM_Duration_IDivDuration_Seconds() 294 absl::Duration d = absl::Seconds(100000); in BM_Duration_ToInt64Nanoseconds() 302 absl::Duration d = absl::Seconds(100000); in BM_Duration_ToInt64Microseconds() 310 absl::Duration d = absl::Seconds(100000); in BM_Duration_ToInt64Milliseconds() 318 absl::Duration d = absl::Seconds(100000); in BM_Duration_ToInt64Seconds() [all …]
|
D | time_benchmark.cc | 39 const absl::Duration sec = absl::Seconds(1); in BM_Time_Arithmetic() 79 t += absl::Seconds(1); in BM_Time_ToDateTime_Absl() 106 t += absl::Seconds(1); in BM_Time_ToDateTimeUTC_Absl() 140 const absl::Time t = absl::UnixEpoch() + absl::Seconds(123); in BM_Time_ToUnixNanos() 148 const absl::Time t = absl::UnixEpoch() + absl::Seconds(123); in BM_Time_ToUnixMicros() 156 const absl::Time t = absl::UnixEpoch() + absl::Seconds(123); in BM_Time_ToUnixMillis() 164 const absl::Time t = absl::UnixEpoch() + absl::Seconds(123); in BM_Time_ToUnixSeconds()
|
D | time_test.cc | 136 t += absl::Hours(18) + absl::Minutes(30) + absl::Seconds(15) + in TEST() 216 EXPECT_EQ(ifuture, ifuture + absl::Seconds(1)); in TEST() 217 EXPECT_EQ(ifuture, ifuture - absl::Seconds(1)); in TEST() 218 EXPECT_EQ(ipast, ipast + absl::Seconds(1)); in TEST() 219 EXPECT_EQ(ipast, ipast - absl::Seconds(1)); in TEST() 731 for (absl::Time t = start; t < end; t += absl::Seconds(30)) { in TEST() 928 zero + absl::Seconds(std::numeric_limits<int64_t>::max()) + in TEST() 931 zero + absl::Seconds(std::numeric_limits<int64_t>::min()); in TEST() 961 t += absl::Seconds(1); in TEST() 964 t += absl::Seconds(1); // no effect in TEST() [all …]
|
/third_party/abseil-cpp/absl/time/ |
D | duration_test.cc | 66 constexpr absl::Duration d1 = absl::Seconds(1); in TEST() 67 static_assert(d1 == absl::Seconds(1), "Seconds(1)"); in TEST() 89 constexpr absl::Duration sec = absl::Seconds(1); in TEST() 94 EXPECT_EQ(zero, absl::Seconds(0)); in TEST() 99 EXPECT_EQ(min, absl::Seconds(60)); in TEST() 105 EXPECT_GT(inf, absl::Seconds(kint64max)); in TEST() 106 EXPECT_LT(-inf, absl::Seconds(kint64min)); in TEST() 107 EXPECT_LT(-inf, absl::Seconds(-kint64max)); in TEST() 146 TEST_DURATION_CONVERSION(Seconds); in TEST() 176 const absl::Duration sec = absl::Seconds(N); in TestToConversion() [all …]
|
D | duration_benchmark.cc | 60 benchmark::DoNotOptimize(absl::Seconds(i)); in BM_Duration_Factory_Seconds() 114 benchmark::DoNotOptimize(absl::Seconds(d)); in BM_Duration_Factory_DoubleSeconds() 152 absl::Duration d = absl::Seconds(std::numeric_limits<int64_t>::max()); in BM_Duration_Subtraction() 183 absl::Duration d = absl::Seconds(1); in BM_Duration_Division_Fixed() 193 absl::Duration d = absl::Seconds(1); in BM_Duration_Division_Double() 258 a += absl::IDivDuration(absl::Seconds(i), absl::Seconds(1), &ignore)); in BM_Duration_IDivDuration_Seconds() 289 absl::Duration d = absl::Seconds(100000); in BM_Duration_ToInt64Nanoseconds() 297 absl::Duration d = absl::Seconds(100000); in BM_Duration_ToInt64Microseconds() 305 absl::Duration d = absl::Seconds(100000); in BM_Duration_ToInt64Milliseconds() 313 absl::Duration d = absl::Seconds(100000); in BM_Duration_ToInt64Seconds() [all …]
|
D | time_benchmark.cc | 39 const absl::Duration sec = absl::Seconds(1); in BM_Time_Arithmetic() 79 t += absl::Seconds(1); in BM_Time_ToDateTime_Absl() 106 t += absl::Seconds(1); in BM_Time_ToDateTimeUTC_Absl() 140 const absl::Time t = absl::UnixEpoch() + absl::Seconds(123); in BM_Time_ToUnixNanos() 148 const absl::Time t = absl::UnixEpoch() + absl::Seconds(123); in BM_Time_ToUnixMicros() 156 const absl::Time t = absl::UnixEpoch() + absl::Seconds(123); in BM_Time_ToUnixMillis() 164 const absl::Time t = absl::UnixEpoch() + absl::Seconds(123); in BM_Time_ToUnixSeconds()
|
/third_party/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/ |
D | TimestampPartial.cs | 66 return Duration.Normalize(lhs.Seconds - rhs.Seconds, lhs.Nanos - rhs.Nanos); in operator -() 82 return Normalize(lhs.Seconds + rhs.Seconds, lhs.Nanos + rhs.Nanos); in operator +() 98 return Normalize(lhs.Seconds - rhs.Seconds, lhs.Nanos - rhs.Nanos); in operator -() 116 if (!IsNormalized(Seconds, Nanos)) in ToDateTime() 120 return UnixEpoch.AddSeconds(Seconds).AddTicks(Nanos / Duration.NanosecondsPerTick); in ToDateTime() 155 …return new Timestamp { Seconds = secondsSinceBclEpoch - BclSecondsAtUnixEpoch, Nanos = nanoseconds… in FromDateTime() 184 return new Timestamp { Seconds = seconds, Nanos = nanoseconds }; in Normalize() 236 : Seconds < other.Seconds ? -1 in CompareTo() 237 : Seconds > other.Seconds ? 1 in CompareTo() 341 return ToJson(Seconds, Nanos, true); in ToDiagnosticString()
|
D | Duration.cs | 151 public long Seconds { property in Google.Protobuf.WellKnownTypes.Duration 190 if (Seconds != other.Seconds) return false; in Equals() 198 if (Seconds != 0L) hash ^= Seconds.GetHashCode(); in GetHashCode() 216 if (Seconds != 0L) { in WriteTo() 218 output.WriteInt64(Seconds); in WriteTo() 233 if (Seconds != 0L) { in IBufferMessage.InternalWriteTo() 235 output.WriteInt64(Seconds); in IBufferMessage.InternalWriteTo() 250 if (Seconds != 0L) { in CalculateSize() 251 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Seconds); in CalculateSize() 267 if (other.Seconds != 0L) { in MergeFrom() [all …]
|
D | Timestamp.cs | 174 public long Seconds { property in Google.Protobuf.WellKnownTypes.Timestamp 211 if (Seconds != other.Seconds) return false; in Equals() 219 if (Seconds != 0L) hash ^= Seconds.GetHashCode(); in GetHashCode() 237 if (Seconds != 0L) { in WriteTo() 239 output.WriteInt64(Seconds); in WriteTo() 254 if (Seconds != 0L) { in IBufferMessage.InternalWriteTo() 256 output.WriteInt64(Seconds); in IBufferMessage.InternalWriteTo() 271 if (Seconds != 0L) { in CalculateSize() 272 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Seconds); in CalculateSize() 288 if (other.Seconds != 0L) { in MergeFrom() [all …]
|
D | DurationPartial.cs | 89 if (!IsNormalized(Seconds, Nanos)) in ToTimeSpan() 93 long ticks = Seconds * TimeSpan.TicksPerSecond + Nanos / NanosecondsPerTick; in ToTimeSpan() 110 return new Duration { Seconds = seconds, Nanos = nanos }; in FromTimeSpan() 124 return Normalize(-value.Seconds, -value.Nanos); in operator -() 140 return Normalize(lhs.Seconds + rhs.Seconds, lhs.Nanos + rhs.Nanos); in operator +() 156 return Normalize(lhs.Seconds - rhs.Seconds, lhs.Nanos - rhs.Nanos); in operator -() 182 return new Duration { Seconds = seconds, Nanos = nanoseconds }; in Normalize() 241 return ToJson(Seconds, Nanos, true); in ToDiagnosticString()
|
/third_party/json/test/thirdparty/Fuzzer/ |
D | FuzzerUtilPosix.cpp | 55 void SetTimer(int Seconds) { in SetTimer() argument 57 {Seconds, 0}, { Seconds, 0 } in SetTimer() 85 void SleepSeconds(int Seconds) { in SleepSeconds() argument 86 sleep(Seconds); // Use C API to avoid coverage from instrumented libc++. in SleepSeconds()
|
D | FuzzerUtilWindows.cpp | 91 void SetTimer(int Seconds) { in SetTimer() argument 101 Seconds*1000, Seconds*1000, 0)) { in SetTimer() 140 void SleepSeconds(int Seconds) { Sleep(Seconds * 1000); } in SleepSeconds() argument
|
D | FuzzerInternal.h | 76 size_t Seconds = secondsSinceProcessStartUp(); in execPerSec() local 77 return Seconds ? TotalNumberOfRuns / Seconds : 0; in execPerSec()
|
/third_party/abseil-cpp/absl/synchronization/ |
D | mutex_test.cc | 210 cxt->cv.WaitWithTimeout(&cxt->mu, absl::Seconds(100)); in TestCVTimeout() 234 cxt->cv.WaitWithTimeout(&cxt->mu, absl::Seconds(1)); in TestTime() 236 ABSL_RAW_CHECK(!cxt->mu.AwaitWithTimeout(false_cond, absl::Seconds(1)), in TestTime() 241 absl::Seconds(0.9) <= elapsed && elapsed <= absl::Seconds(2.0), in TestTime() 247 cxt->cv.WaitWithTimeout(&cxt->mu, absl::Seconds(1)); in TestTime() 249 ABSL_RAW_CHECK(!cxt->mu.AwaitWithTimeout(false_cond, absl::Seconds(1)), in TestTime() 254 absl::Seconds(0.9) <= elapsed && elapsed <= absl::Seconds(2.0), in TestTime() 263 cxt->cv.WaitWithTimeout(&cxt->mu, absl::Seconds(4)); in TestTime() 265 ABSL_RAW_CHECK(!cxt->mu.AwaitWithTimeout(false_cond, absl::Seconds(4)), in TestTime() 270 absl::Seconds(3.9) <= elapsed && elapsed <= absl::Seconds(6.0), in TestTime() [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/synchronization/ |
D | mutex_test.cc | 210 cxt->cv.WaitWithTimeout(&cxt->mu, absl::Seconds(100)); in TestCVTimeout() 234 cxt->cv.WaitWithTimeout(&cxt->mu, absl::Seconds(1)); in TestTime() 236 ABSL_RAW_CHECK(!cxt->mu.AwaitWithTimeout(false_cond, absl::Seconds(1)), in TestTime() 241 absl::Seconds(0.9) <= elapsed && elapsed <= absl::Seconds(2.0), in TestTime() 247 cxt->cv.WaitWithTimeout(&cxt->mu, absl::Seconds(1)); in TestTime() 249 ABSL_RAW_CHECK(!cxt->mu.AwaitWithTimeout(false_cond, absl::Seconds(1)), in TestTime() 254 absl::Seconds(0.9) <= elapsed && elapsed <= absl::Seconds(2.0), in TestTime() 263 cxt->cv.WaitWithTimeout(&cxt->mu, absl::Seconds(4)); in TestTime() 265 ABSL_RAW_CHECK(!cxt->mu.AwaitWithTimeout(false_cond, absl::Seconds(4)), in TestTime() 270 absl::Seconds(3.9) <= elapsed && elapsed <= absl::Seconds(6.0), in TestTime() [all …]
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/ |
D | TimeZoneAliasTest.java | 50 Zone.Seconds seconds = new Zone.Seconds(); in TestAliases() 94 Zone.Seconds diffDate = new Zone.Seconds(); in TestDifferences() 184 Zone.Seconds diffDate = new Zone.Seconds(); 230 public static class Seconds { class in TimeZoneAliasTest.Zone 304 public int findOffsetOrdering(Zone other, Seconds dateDiffFound) { in findOffsetOrdering() 344 private Seconds diffDateReturn = new Seconds();
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/timezone/ |
D | TimeZoneAliasTest.java | 53 Zone.Seconds seconds = new Zone.Seconds(); in TestAliases() 97 Zone.Seconds diffDate = new Zone.Seconds(); in TestDifferences() 187 Zone.Seconds diffDate = new Zone.Seconds(); 233 public static class Seconds { class in TimeZoneAliasTest.Zone 307 public int findOffsetOrdering(Zone other, Seconds dateDiffFound) { in findOffsetOrdering() 347 private Seconds diffDateReturn = new Seconds();
|
/third_party/grpc/src/core/lib/gprpp/ |
D | time_util.cc | 31 int64_t s = absl::IDivDuration(duration, absl::Seconds(1), &duration); in ToGprTimeSpec() 60 return absl::Seconds(ts.tv_sec) + absl::Nanoseconds(ts.tv_nsec); in ToAbslDuration() 72 return absl::UnixEpoch() + absl::Seconds(rts.tv_sec) + in ToAbslTime()
|
/third_party/flutter/engine/flutter/shell/platform/glfw/ |
D | glfw_event_loop.cc | 64 using Seconds = std::chrono::duration<double, std::ratio<1>>; in WaitForEvents() typedef 70 const auto duration_to_wait = std::chrono::duration_cast<Seconds>( in WaitForEvents()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/ |
D | Timer.cpp | 121 using Seconds = std::chrono::duration<double, std::ratio<1>>; in getCurrentTime() typedef 134 Result.WallTime = Seconds(now.time_since_epoch()).count(); in getCurrentTime() 135 Result.UserTime = Seconds(user).count(); in getCurrentTime() 136 Result.SystemTime = Seconds(sys).count(); in getCurrentTime()
|