Home
last modified time | relevance | path

Searched refs:seconds (Results 1 – 25 of 1891) sorted by relevance

12345678910>>...76

/external/protobuf/src/google/protobuf/util/
Dtime_util.cc61 T CreateNormalized(int64 seconds, int64 nanos);
64 Timestamp CreateNormalized(int64 seconds, int64 nanos) { in CreateNormalized() argument
67 seconds += nanos / kNanosPerSecond; in CreateNormalized()
72 seconds -= 1; in CreateNormalized()
75 GOOGLE_DCHECK(seconds >= TimeUtil::kTimestampMinSeconds && in CreateNormalized()
76 seconds <= TimeUtil::kTimestampMaxSeconds); in CreateNormalized()
78 result.set_seconds(seconds); in CreateNormalized()
84 Duration CreateNormalized(int64 seconds, int64 nanos) { in CreateNormalized() argument
87 seconds += nanos / kNanosPerSecond; in CreateNormalized()
91 if (seconds < 0 && nanos > 0) { in CreateNormalized()
[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 …]
Dtime.cc211 bool SecondsToDateTime(int64 seconds, DateTime* time) { in SecondsToDateTime() argument
212 if (seconds < kMinTime || seconds > kMaxTime) { in SecondsToDateTime()
216 seconds = seconds + kSecondsFromEraToEpoch; in SecondsToDateTime()
218 if (seconds >= kSecondsPer400Years) { in SecondsToDateTime()
219 int count_400years = seconds / kSecondsPer400Years; in SecondsToDateTime()
221 seconds %= kSecondsPer400Years; in SecondsToDateTime()
223 while (seconds >= SecondsPer100Years(year)) { in SecondsToDateTime()
224 seconds -= SecondsPer100Years(year); in SecondsToDateTime()
227 while (seconds >= SecondsPer4Years(year)) { in SecondsToDateTime()
228 seconds -= SecondsPer4Years(year); in SecondsToDateTime()
[all …]
/external/python/cpython3/Tools/importbench/
Dimportbench.py20 def bench(name, cleanup=lambda: None, *, seconds=1, repeat=3): argument
28 while total_time < seconds:
36 if total_time > seconds:
38 yield count // seconds
40 def from_cache(seconds, repeat): argument
48 yield from bench(name, repeat=repeat, seconds=seconds)
51 def builtin_mod(seconds, repeat): argument
58 seconds=seconds)
61 def source_wo_bytecode(seconds, repeat): argument
74 seconds=seconds)
[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/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/
DDurationPartial.cs65 internal static bool IsNormalized(long seconds, int nanoseconds) in IsNormalized() argument
68 if (seconds < MinSeconds || seconds > MaxSeconds || in IsNormalized()
75 return Math.Sign(seconds) * Math.Sign(nanoseconds) != -1; in IsNormalized()
108 long seconds = ticks / TimeSpan.TicksPerSecond; in FromTimeSpan()
110 return new Duration { Seconds = seconds, Nanos = nanos }; in FromTimeSpan()
164 internal static Duration Normalize(long seconds, int nanoseconds) in Normalize() argument
168 seconds += extraSeconds; in Normalize()
172 if (seconds < 0 && nanoseconds > 0) in Normalize()
174 seconds += 1; in Normalize()
177 else if (seconds > 0 && nanoseconds < 0) in Normalize()
[all …]
/external/protobuf/python/google/protobuf/internal/
Dwell_known_types.py116 total_sec = self.seconds + (self.nanos - nanos) // _NANOS_PER_SECOND
117 seconds = total_sec % _SECONDS_PER_DAY
118 days = (total_sec - seconds) // _SECONDS_PER_DAY
119 dt = datetime(1970, 1, 1) + timedelta(days, seconds)
165 seconds = td.seconds + td.days * _SECONDS_PER_DAY
186 seconds -= (int(timezone[1:pos])*60+int(timezone[pos+1:]))*60
188 seconds += (int(timezone[1:pos])*60+int(timezone[pos+1:]))*60
190 self.seconds = int(seconds)
199 return self.seconds * _NANOS_PER_SECOND + self.nanos
203 return (self.seconds * _MICROS_PER_SECOND +
[all …]
/external/rust/crates/nix/src/sys/
Dtime.rs11 Self::seconds(0) in zero()
18 Self::seconds(secs) in hours()
25 Self::seconds(secs) in minutes()
28 fn seconds(seconds: i64) -> Self; in seconds() method
126 fn seconds(seconds: i64) -> TimeSpec { in seconds() method
127 assert!(seconds >= TS_MIN_SECONDS && seconds <= TS_MAX_SECONDS, in seconds()
128 "TimeSpec out of bounds; seconds={}", seconds); in seconds()
130 TimeSpec(timespec {tv_sec: seconds as time_t, tv_nsec: 0 }) in seconds()
327 fn seconds(seconds: i64) -> TimeVal { in seconds() method
328 assert!(seconds >= TV_MIN_SECONDS && seconds <= TV_MAX_SECONDS, in seconds()
[all …]
/external/openscreen/discovery/mdns/testing/
Dmdns_test_util.h24 std::chrono::seconds ttl = std::chrono::seconds(1));
26 std::chrono::seconds ttl = std::chrono::seconds(1));
29 std::chrono::seconds ttl = std::chrono::seconds(1));
31 std::chrono::seconds ttl = std::chrono::seconds(1));
33 std::chrono::seconds ttl = std::chrono::seconds(1));
36 std::chrono::seconds ttl = std::chrono::seconds(1));
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/duration/testdata/
Dtestdata_en.txt115 3 seconds ago
116 2 seconds ago
118 0 seconds
120 2 seconds from now
121 3 seconds from now
122 5 seconds from now
123 10 seconds from now
124 11 seconds from now
125 12 seconds from now
126 20 seconds from now
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/testdata/
Dtestdata_en.txt115 3 seconds ago
116 2 seconds ago
118 0 seconds
120 2 seconds from now
121 3 seconds from now
122 5 seconds from now
123 10 seconds from now
124 11 seconds from now
125 12 seconds from now
126 20 seconds from now
[all …]
/external/protobuf/java/util/src/main/java/com/google/protobuf/util/
DDurations.java128 public static boolean isValid(long seconds, int nanos) { in isValid() argument
129 if (seconds < DURATION_SECONDS_MIN || seconds > DURATION_SECONDS_MAX) { in isValid()
135 if (seconds < 0 || nanos < 0) { in isValid()
136 if (seconds > 0 || nanos > 0) { in isValid()
181 long seconds = duration.getSeconds(); in checkValid() local
183 if (!isValid(seconds, nanos)) { in checkValid()
190 seconds, nanos)); in checkValid()
217 long seconds = duration.getSeconds(); in toString() local
221 if (seconds < 0 || nanos < 0) { in toString()
223 seconds = -seconds; in toString()
[all …]
/external/openscreen/third_party/abseil/src/absl/time/internal/cctz/include/cctz/
Dtime_zone.h39 using seconds = std::chrono::duration<std::int_fast64_t>; variable
40 using sys_seconds = seconds; // Deprecated. Use cctz::seconds instead.
44 inline std::pair<time_point<seconds>, D> split_seconds( in split_seconds()
46 auto sec = std::chrono::time_point_cast<seconds>(tp); in split_seconds()
49 sec -= seconds(1); in split_seconds()
50 sub += seconds(1); in split_seconds()
54 inline std::pair<time_point<seconds>, seconds> split_seconds( in split_seconds()
55 const time_point<seconds>& tp) { in split_seconds()
56 return {tp, seconds::zero()}; in split_seconds()
105 absolute_lookup lookup(const time_point<seconds>& tp) const;
[all …]
/external/webrtc/third_party/abseil-cpp/absl/time/internal/cctz/include/cctz/
Dtime_zone.h39 using seconds = std::chrono::duration<std::int_fast64_t>; variable
40 using sys_seconds = seconds; // Deprecated. Use cctz::seconds instead.
44 inline std::pair<time_point<seconds>, D> split_seconds( in split_seconds()
46 auto sec = std::chrono::time_point_cast<seconds>(tp); in split_seconds()
49 sec -= seconds(1); in split_seconds()
50 sub += seconds(1); in split_seconds()
54 inline std::pair<time_point<seconds>, seconds> split_seconds( in split_seconds()
55 const time_point<seconds>& tp) { in split_seconds()
56 return {tp, seconds::zero()}; in split_seconds()
105 absolute_lookup lookup(const time_point<seconds>& tp) const;
[all …]
/external/abseil-cpp/absl/time/internal/cctz/include/cctz/
Dtime_zone.h39 using seconds = std::chrono::duration<std::int_fast64_t>; variable
40 using sys_seconds = seconds; // Deprecated. Use cctz::seconds instead.
44 inline std::pair<time_point<seconds>, D> split_seconds( in split_seconds()
46 auto sec = std::chrono::time_point_cast<seconds>(tp); in split_seconds()
49 sec -= seconds(1); in split_seconds()
50 sub += seconds(1); in split_seconds()
54 inline std::pair<time_point<seconds>, seconds> split_seconds( in split_seconds()
55 const time_point<seconds>& tp) { in split_seconds()
56 return {tp, seconds::zero()}; in split_seconds()
105 absolute_lookup lookup(const time_point<seconds>& tp) const;
[all …]
/external/libtextclassifier/abseil-cpp/absl/time/internal/cctz/include/cctz/
Dtime_zone.h39 using seconds = std::chrono::duration<std::int_fast64_t>; variable
40 using sys_seconds = seconds; // Deprecated. Use cctz::seconds instead.
44 inline std::pair<time_point<seconds>, D> split_seconds( in split_seconds()
46 auto sec = std::chrono::time_point_cast<seconds>(tp); in split_seconds()
49 sec -= seconds(1); in split_seconds()
50 sub += seconds(1); in split_seconds()
54 inline std::pair<time_point<seconds>, seconds> split_seconds( in split_seconds()
55 const time_point<seconds>& tp) { in split_seconds()
56 return {tp, seconds::zero()}; in split_seconds()
105 absolute_lookup lookup(const time_point<seconds>& tp) const;
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/time/internal/cctz/include/cctz/
Dtime_zone.h39 using seconds = std::chrono::duration<std::int_fast64_t>; variable
40 using sys_seconds = seconds; // Deprecated. Use cctz::seconds instead.
44 inline std::pair<time_point<seconds>, D> split_seconds( in split_seconds()
46 auto sec = std::chrono::time_point_cast<seconds>(tp); in split_seconds()
49 sec -= seconds(1); in split_seconds()
50 sub += seconds(1); in split_seconds()
54 inline std::pair<time_point<seconds>, seconds> split_seconds( in split_seconds()
55 const time_point<seconds>& tp) { in split_seconds()
56 return {tp, seconds::zero()}; in split_seconds()
105 absolute_lookup lookup(const time_point<seconds>& tp) const;
[all …]
/external/rust/crates/chrono/src/
Doldtime.rs74 Duration::seconds(secs) in weeks()
83 Duration::seconds(secs) in days()
92 Duration::seconds(secs) in hours()
101 Duration::seconds(secs) in minutes()
108 pub fn seconds(seconds: i64) -> Duration { in seconds() method
109 let d = Duration { secs: seconds, nanos: 0 }; in seconds()
464 assert!(Duration::seconds(1) != Duration::zero()); in test_duration()
465 assert_eq!(Duration::seconds(1) + Duration::seconds(2), Duration::seconds(3)); in test_duration()
467 Duration::seconds(86399) + Duration::seconds(4), in test_duration()
468 Duration::days(1) + Duration::seconds(3) in test_duration()
[all …]
/external/abseil-cpp/absl/time/internal/cctz/src/
Dtime_zone_lookup_test.cc727 fixed_time_zone(absl::time_internal::cctz::seconds::zero()); in TEST()
730 chrono::hours(3) + chrono::minutes(25) + chrono::seconds(45)); in TEST()
733 -(chrono::hours(12) + chrono::minutes(34) + chrono::seconds(56))); in TEST()
771 fixed_time_zone(absl::time_internal::cctz::seconds::zero()); in TEST()
780 chrono::hours(3) + chrono::minutes(25) + chrono::seconds(45)); in TEST()
784 -(chrono::hours(12) + chrono::minutes(34) + chrono::seconds(56))); in TEST()
792 fixed_time_zone(chrono::hours(24) + chrono::seconds(1)); in TEST()
796 EXPECT_EQ(fixed_time_zone(chrono::seconds(1)), in TEST()
797 fixed_time_zone(chrono::seconds(1))); in TEST()
813 diff % chrono::seconds(1)); in TEST()
[all …]
/external/webrtc/third_party/abseil-cpp/absl/time/internal/cctz/src/
Dtime_zone_lookup_test.cc727 fixed_time_zone(absl::time_internal::cctz::seconds::zero()); in TEST()
730 chrono::hours(3) + chrono::minutes(25) + chrono::seconds(45)); in TEST()
733 -(chrono::hours(12) + chrono::minutes(34) + chrono::seconds(56))); in TEST()
771 fixed_time_zone(absl::time_internal::cctz::seconds::zero()); in TEST()
780 chrono::hours(3) + chrono::minutes(25) + chrono::seconds(45)); in TEST()
784 -(chrono::hours(12) + chrono::minutes(34) + chrono::seconds(56))); in TEST()
792 fixed_time_zone(chrono::hours(24) + chrono::seconds(1)); in TEST()
796 EXPECT_EQ(fixed_time_zone(chrono::seconds(1)), in TEST()
797 fixed_time_zone(chrono::seconds(1))); in TEST()
813 diff % chrono::seconds(1)); in TEST()
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/time/internal/cctz/src/
Dtime_zone_lookup_test.cc728 fixed_time_zone(absl::time_internal::cctz::seconds::zero()); in TEST()
731 chrono::hours(3) + chrono::minutes(25) + chrono::seconds(45)); in TEST()
734 -(chrono::hours(12) + chrono::minutes(34) + chrono::seconds(56))); in TEST()
772 fixed_time_zone(absl::time_internal::cctz::seconds::zero()); in TEST()
781 chrono::hours(3) + chrono::minutes(25) + chrono::seconds(45)); in TEST()
785 -(chrono::hours(12) + chrono::minutes(34) + chrono::seconds(56))); in TEST()
793 fixed_time_zone(chrono::hours(24) + chrono::seconds(1)); in TEST()
797 EXPECT_EQ(fixed_time_zone(chrono::seconds(1)), in TEST()
798 fixed_time_zone(chrono::seconds(1))); in TEST()
814 diff % chrono::seconds(1)); in TEST()
[all …]
/external/libtextclassifier/abseil-cpp/absl/time/internal/cctz/src/
Dtime_zone_lookup_test.cc728 fixed_time_zone(absl::time_internal::cctz::seconds::zero()); in TEST()
731 chrono::hours(3) + chrono::minutes(25) + chrono::seconds(45)); in TEST()
734 -(chrono::hours(12) + chrono::minutes(34) + chrono::seconds(56))); in TEST()
772 fixed_time_zone(absl::time_internal::cctz::seconds::zero()); in TEST()
781 chrono::hours(3) + chrono::minutes(25) + chrono::seconds(45)); in TEST()
785 -(chrono::hours(12) + chrono::minutes(34) + chrono::seconds(56))); in TEST()
793 fixed_time_zone(chrono::hours(24) + chrono::seconds(1)); in TEST()
797 EXPECT_EQ(fixed_time_zone(chrono::seconds(1)), in TEST()
798 fixed_time_zone(chrono::seconds(1))); in TEST()
814 diff % chrono::seconds(1)); in TEST()
[all …]
/external/openscreen/third_party/abseil/src/absl/time/internal/cctz/src/
Dtime_zone_lookup_test.cc728 fixed_time_zone(absl::time_internal::cctz::seconds::zero()); in TEST()
731 chrono::hours(3) + chrono::minutes(25) + chrono::seconds(45)); in TEST()
734 -(chrono::hours(12) + chrono::minutes(34) + chrono::seconds(56))); in TEST()
772 fixed_time_zone(absl::time_internal::cctz::seconds::zero()); in TEST()
781 chrono::hours(3) + chrono::minutes(25) + chrono::seconds(45)); in TEST()
785 -(chrono::hours(12) + chrono::minutes(34) + chrono::seconds(56))); in TEST()
793 fixed_time_zone(chrono::hours(24) + chrono::seconds(1)); in TEST()
797 EXPECT_EQ(fixed_time_zone(chrono::seconds(1)), in TEST()
798 fixed_time_zone(chrono::seconds(1))); in TEST()
814 diff % chrono::seconds(1)); in TEST()
[all …]
/external/protobuf/src/google/protobuf/
Dduration.proto44 // as a count of seconds and fractions of seconds at nanosecond
58 // duration.seconds = end.seconds - start.seconds;
61 // if (duration.seconds < 0 && duration.nanos > 0) {
62 // duration.seconds += 1;
64 // } else if (durations.seconds > 0 && duration.nanos < 0) {
65 // duration.seconds -= 1;
75 // end.seconds = start.seconds + duration.seconds;
79 // end.seconds -= 1;
82 // end.seconds += 1;
95 // object, where the string ends in the suffix "s" (indicating seconds) and
[all …]
/external/golang-protobuf/ptypes/duration/
Dduration.proto44 // as a count of seconds and fractions of seconds at nanosecond
58 // duration.seconds = end.seconds - start.seconds;
61 // if (duration.seconds < 0 && duration.nanos > 0) {
62 // duration.seconds += 1;
64 // } else if (duration.seconds > 0 && duration.nanos < 0) {
65 // duration.seconds -= 1;
75 // end.seconds = start.seconds + duration.seconds;
79 // end.seconds -= 1;
82 // end.seconds += 1;
95 // object, where the string ends in the suffix "s" (indicating seconds) and
[all …]

12345678910>>...76