Home
last modified time | relevance | path

Searched full:seconds (Results 1 – 25 of 10536) sorted by relevance

12345678910>>...422

/external/sdv/vsomeip/third_party/boost/chrono/test/duration/
Drounding_pass.cpp26 BOOST_TEST_EQ( seconds(-2), floor<seconds>( milliseconds(-2000) ) ); in test_floor()
27 BOOST_TEST_EQ( seconds(-2), floor<seconds>( milliseconds(-1999) ) ); in test_floor()
28 BOOST_TEST_EQ( seconds(-2), floor<seconds>( milliseconds(-1001) ) ); in test_floor()
29 BOOST_TEST_EQ( seconds(-1), floor<seconds>( milliseconds(-1000) ) ); in test_floor()
30 BOOST_TEST_EQ( seconds(-1), floor<seconds>( milliseconds(-999) ) ); in test_floor()
31 BOOST_TEST_EQ( seconds(-1), floor<seconds>( milliseconds(-1) ) ); in test_floor()
32 BOOST_TEST_EQ( seconds(0), floor<seconds>( milliseconds(0) ) ); in test_floor()
33 BOOST_TEST_EQ( seconds(0), floor<seconds>( milliseconds(1) ) ); in test_floor()
34 BOOST_TEST_EQ( seconds(0), floor<seconds>( milliseconds(999) ) ); in test_floor()
35 BOOST_TEST_EQ( seconds(1), floor<seconds>( milliseconds(1000) ) ); in test_floor()
[all …]
/external/rust/android-crates-io/crates/nix/test/sys/
Dtest_time.rs6 assert_ne!(TimeSpec::seconds(1), TimeSpec::zero()); in test_timespec()
8 TimeSpec::seconds(1) + TimeSpec::seconds(2), in test_timespec()
9 TimeSpec::seconds(3) in test_timespec()
12 TimeSpec::minutes(3) + TimeSpec::seconds(2), in test_timespec()
13 TimeSpec::seconds(182) in test_timespec()
28 let a = TimeSpec::seconds(1) + TimeSpec::nanoseconds(123); in test_timespec_neg()
29 let b = TimeSpec::seconds(-1) + TimeSpec::nanoseconds(-123); in test_timespec_neg()
36 assert_eq!(TimeSpec::seconds(1), TimeSpec::nanoseconds(1_000_000_000)); in test_timespec_ord()
37 assert!(TimeSpec::seconds(1) < TimeSpec::nanoseconds(1_000_000_001)); in test_timespec_ord()
38 assert!(TimeSpec::seconds(1) > TimeSpec::nanoseconds(999_999_999)); in test_timespec_ord()
[all …]
/external/squashfs-tools/RELEASE-READMEs/
DPERFORMANCE.README35 Zisofs 49.88 seconds (User 2.60 secs, Sys 11.19 secs)
36 Cloop 20.80 seconds (User 2.71 secs, Sys 13.50 secs)
37 Squashfs2.0 16.56 seconds (User 2.42 secs, Sys 10.37 secs)
38 Squashfs2.1 10.14 seconds (User 2.48 secs, Sys 4.44 secs)
45 Zisofs 27 minutes 28.54 seconds (User 3.00 secs, Sys 1 min 4.80 secs)
46 Cloop 5 minutes 55.72 seconds (User 2.90 secs, Sys 3 min 37.90 secs)
47 Squashfs2.0 5 minutes 20.87 seconds (User 2.33 secs, Sys 56.98 secs)
48 Squashfs2.1 5 minutes 15.46 seconds (user 2.28 secs, Sys 51.12 secs)
58 Zisofs 101 minutes 29.65 seconds (User 5.33 secs, Sys 1 min 17.20 secs)
59 Cloop 35 minutes 27.51 seconds (user 5.93 secs, Sys 4 mins 30.23 secs)
[all …]
/external/cronet/tot/third_party/protobuf/src/google/protobuf/util/
Dtime_util.cc58 static const int kSecondsPerMinute = 60; // Note that we ignore leap seconds.
62 T CreateNormalized(int64_t seconds, int64_t nanos);
65 Timestamp CreateNormalized(int64_t seconds, int64_t nanos) { in CreateNormalized() argument
68 seconds += nanos / kNanosPerSecond; in CreateNormalized()
73 seconds -= 1; in CreateNormalized()
76 GOOGLE_DCHECK(seconds >= TimeUtil::kTimestampMinSeconds && in CreateNormalized()
77 seconds <= TimeUtil::kTimestampMaxSeconds); in CreateNormalized()
79 result.set_seconds(seconds); in CreateNormalized()
85 Duration CreateNormalized(int64_t seconds, int64_t nanos) { in CreateNormalized() argument
88 seconds += nanos / kNanosPerSecond; in CreateNormalized()
[all …]
/external/protobuf/src/google/protobuf/util/
Dtime_util.cc58 static const int kSecondsPerMinute = 60; // Note that we ignore leap seconds.
62 T CreateNormalized(int64_t seconds, int64_t nanos);
65 Timestamp CreateNormalized(int64_t seconds, int64_t nanos) { in CreateNormalized() argument
68 seconds += nanos / kNanosPerSecond; in CreateNormalized()
73 seconds -= 1; in CreateNormalized()
76 GOOGLE_DCHECK(seconds >= TimeUtil::kTimestampMinSeconds && in CreateNormalized()
77 seconds <= TimeUtil::kTimestampMaxSeconds); in CreateNormalized()
79 result.set_seconds(seconds); in CreateNormalized()
85 Duration CreateNormalized(int64_t seconds, int64_t nanos) { in CreateNormalized() argument
88 seconds += nanos / kNanosPerSecond; in CreateNormalized()
[all …]
/external/cronet/stable/third_party/protobuf/src/google/protobuf/util/
Dtime_util.cc58 static const int kSecondsPerMinute = 60; // Note that we ignore leap seconds.
62 T CreateNormalized(int64_t seconds, int64_t nanos);
65 Timestamp CreateNormalized(int64_t seconds, int64_t nanos) { in CreateNormalized() argument
68 seconds += nanos / kNanosPerSecond; in CreateNormalized()
73 seconds -= 1; in CreateNormalized()
76 GOOGLE_DCHECK(seconds >= TimeUtil::kTimestampMinSeconds && in CreateNormalized()
77 seconds <= TimeUtil::kTimestampMaxSeconds); in CreateNormalized()
79 result.set_seconds(seconds); in CreateNormalized()
85 Duration CreateNormalized(int64_t seconds, int64_t nanos) { in CreateNormalized() argument
88 seconds += nanos / kNanosPerSecond; in CreateNormalized()
[all …]
/external/icu/icu4j/main/core/src/test/resources/com/ibm/icu/dev/test/duration/testdata/
Dtestdata_en.txt117 3 seconds ago
118 2 seconds ago
120 0 seconds
122 2 seconds from now
123 3 seconds from now
124 5 seconds from now
125 10 seconds from now
126 11 seconds from now
127 12 seconds from now
128 20 seconds from now
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/duration/testdata/
Dtestdata_en.txt117 3 seconds ago
118 2 seconds ago
120 0 seconds
122 2 seconds from now
123 3 seconds from now
124 5 seconds from now
125 10 seconds from now
126 11 seconds from now
127 12 seconds from now
128 20 seconds from now
[all …]
/external/cronet/tot/third_party/protobuf/php/src/Google/Protobuf/
DDuration.php13 * as a count of seconds and fractions of seconds at nanosecond
23 * duration.seconds = end.seconds - start.seconds;
25 * if (duration.seconds < 0 && duration.nanos > 0) {
26 * duration.seconds += 1;
28 * } else if (duration.seconds > 0 && duration.nanos < 0) {
29 * duration.seconds -= 1;
36 * end.seconds = start.seconds + duration.seconds;
39 * end.seconds -= 1;
42 * end.seconds += 1;
51 * object, where the string ends in the suffix "s" (indicating seconds) and
[all …]
/external/cronet/stable/third_party/protobuf/php/src/Google/Protobuf/
DDuration.php13 * as a count of seconds and fractions of seconds at nanosecond
23 * duration.seconds = end.seconds - start.seconds;
25 * if (duration.seconds < 0 && duration.nanos > 0) {
26 * duration.seconds += 1;
28 * } else if (duration.seconds > 0 && duration.nanos < 0) {
29 * duration.seconds -= 1;
36 * end.seconds = start.seconds + duration.seconds;
39 * end.seconds -= 1;
42 * end.seconds += 1;
51 * object, where the string ends in the suffix "s" (indicating seconds) and
[all …]
/external/protobuf/php/src/Google/Protobuf/
DDuration.php13 * as a count of seconds and fractions of seconds at nanosecond
23 * duration.seconds = end.seconds - start.seconds;
25 * if (duration.seconds < 0 && duration.nanos > 0) {
26 * duration.seconds += 1;
28 * } else if (duration.seconds > 0 && duration.nanos < 0) {
29 * duration.seconds -= 1;
36 * end.seconds = start.seconds + duration.seconds;
39 * end.seconds -= 1;
42 * end.seconds += 1;
51 * object, where the string ends in the suffix "s" (indicating seconds) and
[all …]
/external/golang-protobuf/types/known/timestamppb/
Dtimestamp_test.go26 …minTimestamp = -62135596800 // Seconds between 1970-01-01T00:00:00Z and 0001-01-01T00:00:00Z, inc…
27 …maxTimestamp = +253402300799 // Seconds between 1970-01-01T00:00:00Z and 9999-12-31T23:59:59Z, inc…
35 {in: time.Time{}, want: &tspb.Timestamp{Seconds: -62135596800, Nanos: 0}},
36 {in: time.Unix(0, 0), want: &tspb.Timestamp{Seconds: 0, Nanos: 0}},
37 {in: time.Unix(math.MinInt64, 0), want: &tspb.Timestamp{Seconds: math.MinInt64, Nanos: 0}},
38 …{in: time.Unix(math.MaxInt64, 1e9-1), want: &tspb.Timestamp{Seconds: math.MaxInt64, Nanos: 1e9 - 1…
39 …{in: time.Date(1, 1, 1, 0, 0, 0, 0, time.UTC), want: &tspb.Timestamp{Seconds: minTimestamp, Nanos:…
40 …1, 1, 0, 0, 0, 0, time.UTC).Add(-time.Nanosecond), want: &tspb.Timestamp{Seconds: minTimestamp - 1…
41 …{in: time.Date(9999, 12, 31, 23, 59, 59, 1e9-1, time.UTC), want: &tspb.Timestamp{Seconds: maxTimes…
42 …3, 59, 59, 1e9-1, time.UTC).Add(+time.Nanosecond), want: &tspb.Timestamp{Seconds: maxTimestamp + 1…
[all …]
/external/golang-protobuf/types/known/durationpb/
Dduration_test.go36 {in: time.Duration(0), want: &durpb.Duration{Seconds: 0, Nanos: 0}},
37 {in: -time.Second, want: &durpb.Duration{Seconds: -1, Nanos: 0}},
38 {in: +time.Second, want: &durpb.Duration{Seconds: +1, Nanos: 0}},
39 {in: -time.Second - time.Millisecond, want: &durpb.Duration{Seconds: -1, Nanos: -1e6}},
40 {in: +time.Second + time.Millisecond, want: &durpb.Duration{Seconds: +1, Nanos: +1e6}},
41 …{in: time.Duration(math.MinInt64), want: &durpb.Duration{Seconds: minGoSeconds, Nanos: int32(math.…
42 …{in: time.Duration(math.MaxInt64), want: &durpb.Duration{Seconds: maxGoSeconds, Nanos: int32(math.…
61 {in: &durpb.Duration{Seconds: -1, Nanos: 0}, wantDur: -time.Second},
62 {in: &durpb.Duration{Seconds: +1, Nanos: 0}, wantDur: +time.Second},
63 {in: &durpb.Duration{Seconds: 0, Nanos: -1}, wantDur: -time.Nanosecond},
[all …]
/external/sdk-platform-java/java-core/google-cloud-core/src/main/java/com/google/cloud/
DTimestamp.java49 new Timestamp(253402300799L, (int) TimeUnit.SECONDS.toNanos(1) - 1);
62 private final long seconds; field in Timestamp
65 private Timestamp(long seconds, int nanos) { in Timestamp() argument
66 this.seconds = seconds; in Timestamp()
71 * Creates an instance representing the value of {@code seconds} and {@code nanos} since January
74 * @param seconds seconds since January 1, 1970, 00:00:00 UTC. A negative value is the number of
75 * seconds before January 1, 1970, 00:00:00 UTC.
76 * @param nanos the fractional seconds component, in the range 0..999999999.
79 public static Timestamp ofTimeSecondsAndNanos(long seconds, int nanos) { in ofTimeSecondsAndNanos() argument
81 Timestamps.isValid(seconds, nanos), "timestamp out of range: %s, %s", seconds, nanos); in ofTimeSecondsAndNanos() local
[all …]
/external/python/cpython3/Tools/importbench/
Dimportbench.py21 def bench(name, cleanup=lambda: None, *, seconds=1, repeat=3): argument
29 while total_time < seconds:
37 if total_time > seconds:
39 yield count // seconds
41 def from_cache(seconds, repeat): argument
49 yield from bench(name, repeat=repeat, seconds=seconds)
52 def builtin_mod(seconds, repeat): argument
59 seconds=seconds)
62 def source_wo_bytecode(seconds, repeat): argument
75 seconds=seconds)
[all …]
/external/cronet/stable/third_party/llvm-libc/src/test/src/time/
Dgmtime_test.cpp24 time_t seconds = in TEST() local
27 struct tm *tm_data = LIBC_NAMESPACE::gmtime(&seconds); in TEST()
32 seconds = INT_MIN * static_cast<int64_t>( in TEST()
35 tm_data = LIBC_NAMESPACE::gmtime(&seconds); in TEST()
41 time_t seconds = 0; in TEST() local
44 seconds = -1; in TEST()
45 tm_data = LIBC_NAMESPACE::gmtime(&seconds); in TEST()
56 // 60 seconds from 1970-01-01 00:00:00 returns 1970-01-01 00:01:00. in TEST()
57 seconds = 60; in TEST()
58 tm_data = LIBC_NAMESPACE::gmtime(&seconds); in TEST()
[all …]
/external/cronet/tot/third_party/llvm-libc/src/test/src/time/
Dgmtime_test.cpp24 time_t seconds = in TEST() local
27 struct tm *tm_data = LIBC_NAMESPACE::gmtime(&seconds); in TEST()
32 seconds = INT_MIN * static_cast<int64_t>( in TEST()
35 tm_data = LIBC_NAMESPACE::gmtime(&seconds); in TEST()
41 time_t seconds = 0; in TEST() local
44 seconds = -1; in TEST()
45 tm_data = LIBC_NAMESPACE::gmtime(&seconds); in TEST()
56 // 60 seconds from 1970-01-01 00:00:00 returns 1970-01-01 00:01:00. in TEST()
57 seconds = 60; in TEST()
58 tm_data = LIBC_NAMESPACE::gmtime(&seconds); in TEST()
[all …]
/external/protobuf/src/google/protobuf/stubs/
Dtime_test.cc68 int64 seconds; in TEST() local
69 ASSERT_TRUE(DateTimeToSeconds(time, &seconds)); in TEST()
70 EXPECT_EQ(1, seconds); in TEST()
79 ASSERT_TRUE(DateTimeToSeconds(time, &seconds)); in TEST()
80 EXPECT_EQ(-1, seconds); in TEST()
100 ASSERT_TRUE(DateTimeToSeconds(time, &seconds)); in TEST()
101 EXPECT_EQ(start_time, seconds); in TEST()
103 ASSERT_TRUE(DateTimeToSeconds(time, &seconds)); in TEST()
104 EXPECT_EQ(end_time, seconds); in TEST()
153 int64 seconds; in TEST() local
[all …]
/external/cronet/tot/third_party/protobuf/src/google/protobuf/stubs/
Dtime_test.cc68 int64 seconds; in TEST() local
69 ASSERT_TRUE(DateTimeToSeconds(time, &seconds)); in TEST()
70 EXPECT_EQ(1, seconds); in TEST()
79 ASSERT_TRUE(DateTimeToSeconds(time, &seconds)); in TEST()
80 EXPECT_EQ(-1, seconds); in TEST()
100 ASSERT_TRUE(DateTimeToSeconds(time, &seconds)); in TEST()
101 EXPECT_EQ(start_time, seconds); in TEST()
103 ASSERT_TRUE(DateTimeToSeconds(time, &seconds)); in TEST()
104 EXPECT_EQ(end_time, seconds); in TEST()
153 int64 seconds; in TEST() local
[all …]
/external/cronet/stable/third_party/protobuf/src/google/protobuf/stubs/
Dtime_test.cc68 int64 seconds; in TEST() local
69 ASSERT_TRUE(DateTimeToSeconds(time, &seconds)); in TEST()
70 EXPECT_EQ(1, seconds); in TEST()
79 ASSERT_TRUE(DateTimeToSeconds(time, &seconds)); in TEST()
80 EXPECT_EQ(-1, seconds); in TEST()
100 ASSERT_TRUE(DateTimeToSeconds(time, &seconds)); in TEST()
101 EXPECT_EQ(start_time, seconds); in TEST()
103 ASSERT_TRUE(DateTimeToSeconds(time, &seconds)); in TEST()
104 EXPECT_EQ(end_time, seconds); in TEST()
153 int64 seconds; in TEST() local
[all …]
/external/sdv/vsomeip/third_party/boost/pool/example/
Dtime_pool_alloc.cpp98 std::cout << " std::allocator: " << end[0][0] << " seconds" << std::endl; in timing_test_alloc_larger()
99 std::cout << " malloc/free: " << end[0][1] << " seconds" << std::endl; in timing_test_alloc_larger()
100 std::cout << " new/delete: " << end[0][2] << " seconds" << std::endl; in timing_test_alloc_larger()
101 std::cout << " Pool Alloc: " << end[0][3] << " seconds" << std::endl; in timing_test_alloc_larger()
102 std::cout << " Pool /w Sync: " << end[0][4] << " seconds" << std::endl; in timing_test_alloc_larger()
103 std::cout << " Pool: " << end[0][5] << " seconds" << std::endl; in timing_test_alloc_larger()
239 std::cout << " std::allocator: " << end[0][0] << " seconds" << std::endl; in timing_test_alloc()
240 std::cout << " malloc/free: " << end[0][1] << " seconds" << std::endl; in timing_test_alloc()
241 std::cout << " new/delete: " << end[0][2] << " seconds" << std::endl; in timing_test_alloc()
242 std::cout << " Pool Alloc: " << end[0][3] << " seconds" << std::endl; in timing_test_alloc()
[all …]
/external/llvm-libc/test/src/time/
Dgmtime_test.cpp24 time_t seconds = in TEST() local
29 struct tm *tm_data = LIBC_NAMESPACE::gmtime(&seconds); in TEST()
34 seconds = in TEST()
39 tm_data = LIBC_NAMESPACE::gmtime(&seconds); in TEST()
45 time_t seconds = 0; in TEST() local
48 seconds = -1; in TEST()
49 tm_data = LIBC_NAMESPACE::gmtime(&seconds); in TEST()
61 // 60 seconds from 1970-01-01 00:00:00 returns 1970-01-01 00:01:00. in TEST()
62 seconds = 60; in TEST()
63 tm_data = LIBC_NAMESPACE::gmtime(&seconds); in TEST()
[all …]
/external/cronet/tot/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/WellKnownTypes/
DDurationTest.cs43 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 …]
/external/cronet/tot/third_party/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/
DDurationTest.cs43 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 …]
/external/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/
DDurationTest.cs43 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 …]

12345678910>>...422