Home
last modified time | relevance | path

Searched refs:now (Results 1 – 25 of 4679) sorted by relevance

12345678910>>...188

/external/python/cpython2/Lib/test/
Dtest_strftime.py36 def _update_variables(self, now): argument
38 self.gmt = time.gmtime(now)
39 now = time.localtime(now)
41 if now[3] < 12: self.ampm='(AM|am)'
44 self.jan1 = time.localtime(time.mktime((now[0], 1, 1, 0, 0, 0, 0, 1, 0)))
47 if now[8]: self.tz = time.tzname[1]
52 if now[3] > 12: self.clock12 = now[3] - 12
53 elif now[3] > 0: self.clock12 = now[3]
56 self.now = now
69 now = time.time()
[all …]
/external/python/cpython3/Lib/test/
Dtest_strftime.py34 def _update_variables(self, now): argument
36 self.gmt = time.gmtime(now)
37 now = time.localtime(now)
39 if now[3] < 12: self.ampm='(AM|am)'
42 self.jan1 = time.localtime(time.mktime((now[0], 1, 1, 0, 0, 0, 0, 1, 0)))
45 if now[8]: self.tz = time.tzname[1]
50 if now[3] > 12: self.clock12 = now[3] - 12
51 elif now[3] > 0: self.clock12 = now[3]
54 self.now = now
67 now = time.time()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/duration/testdata/
Dtestdata_en.txt23 1 year from now
24 2 years from now
25 3 years from now
26 5 years from now
27 10 years from now
28 11 years from now
29 12 years from now
30 20 years from now
31 21 years from now
32 22 years from now
[all …]
Dtestdata_hi.txt204 १ महीना से कम from now
205 १ महीना और २ सप्ताह से कम from now
206 १ महीना, २ सप्ताह और ३ दिन से कम from now
213 १ महीना से ज़्यादा from now
214 १ महीना और २ सप्ताह से ज़्यादा from now
215 १ महीना, २ सप्ताह और ३ दिन से ज़्यादा from now
231 १ घंटा से कम from now
232 १ घंटा और २ मिनट से कम from now
233 १ घंटा, २ मिनट और ३ सेकण्ड से कम from now
240 १ घंटा से ज़्यादा from now
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/testdata/
Dtestdata_en.txt23 1 year from now
24 2 years from now
25 3 years from now
26 5 years from now
27 10 years from now
28 11 years from now
29 12 years from now
30 20 years from now
31 21 years from now
32 22 years from now
[all …]
Dtestdata_hi.txt204 १ महीना से कम from now
205 १ महीना और २ सप्ताह से कम from now
206 १ महीना, २ सप्ताह और ३ दिन से कम from now
213 १ महीना से ज़्यादा from now
214 १ महीना और २ सप्ताह से ज़्यादा from now
215 १ महीना, २ सप्ताह और ३ दिन से ज़्यादा from now
231 १ घंटा से कम from now
232 १ घंटा और २ मिनट से कम from now
233 १ घंटा, २ मिनट और ३ सेकण्ड से कम from now
240 १ घंटा से ज़्यादा from now
[all …]
/external/webrtc/modules/pacing/
Dbitrate_prober_unittest.cc25 Timestamp now = Timestamp::Millis(0); in TEST() local
26 const Timestamp start_time = now; in TEST()
27 EXPECT_EQ(prober.NextProbeTime(now), Timestamp::PlusInfinity()); in TEST()
35 prober.CreateProbeCluster(kTestBitrate1, now, 0); in TEST()
36 prober.CreateProbeCluster(kTestBitrate2, now, 1); in TEST()
41 EXPECT_EQ(0, prober.CurrentCluster(now)->probe_cluster_id); in TEST()
44 EXPECT_EQ(Timestamp::MinusInfinity(), prober.NextProbeTime(now)); in TEST()
47 now = std::max(now, prober.NextProbeTime(now)); in TEST()
48 EXPECT_EQ(now, std::max(now, prober.NextProbeTime(now))); in TEST()
49 EXPECT_EQ(0, prober.CurrentCluster(now)->probe_cluster_id); in TEST()
[all …]
/external/ltp/testcases/kernel/syscalls/clock_gettime/
Dleapsec01.c37 static const char *strtime(const struct timespec *now) in strtime() argument
41 if (snprintf(fmt, sizeof(fmt), "%%T.%09ld", now->tv_nsec) < 0) { in strtime()
45 if (!strftime(buf, sizeof(buf), fmt, localtime(&now->tv_sec))) { in strtime()
75 struct timespec now; in adjtimex_status() local
80 now.tv_sec = tx->time.tv_sec; in adjtimex_status()
81 now.tv_nsec = tx->time.tv_usec * 1000; in adjtimex_status()
88 tst_res(TINFO, "%s adjtimex: %s", strtime(&now), msgs[ret]); in adjtimex_status()
91 strtime(&now), ret); in adjtimex_status()
96 struct timespec now, target; in test_hrtimer_early_expiration() local
99 SAFE_CLOCK_GETTIME(CLOCK_REALTIME, &now); in test_hrtimer_early_expiration()
[all …]
/external/rust/crates/tokio/tests/
Dtime_sleep.rs13 ($now:expr, $ms:expr) => {{
14 let elapsed = $now.elapsed();
31 let now = Instant::now(); in immediate_sleep() localVariable
34 time::sleep_until(now).await; in immediate_sleep()
35 assert_elapsed!(now, 0); in immediate_sleep()
62 let now = Instant::now(); in delayed_sleep_level_0() localVariable
64 time::sleep_until(now + ms(i)).await; in delayed_sleep_level_0()
66 assert_elapsed!(now, i); in delayed_sleep_level_0()
75 let now = Instant::now(); in sub_ms_delayed_sleep() localVariable
76 let deadline = now + ms(1) + Duration::new(0, 1); in sub_ms_delayed_sleep()
[all …]
/external/curl/src/
Dtool_util.c37 struct timeval now; in tvnow() local
41 now.tv_sec = (long)(count.QuadPart / tool_freq.QuadPart); in tvnow()
42 now.tv_usec = (long)((count.QuadPart % tool_freq.QuadPart) * 1000000 / in tvnow()
56 now.tv_sec = (long)(milliseconds / 1000); in tvnow()
57 now.tv_usec = (long)((milliseconds % 1000) * 1000); in tvnow()
59 return now; in tvnow()
73 struct timeval now; in tvnow() local
76 now.tv_sec = tsnow.tv_sec; in tvnow()
77 now.tv_usec = (int)(tsnow.tv_nsec / 1000); in tvnow()
86 (void)gettimeofday(&now, NULL); in tvnow()
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/cares/cares/
Dares__timeval.c28 struct timeval now; in ares__tvnow() local
30 now.tv_sec = milliseconds / 1000; in ares__tvnow()
31 now.tv_usec = (milliseconds % 1000) * 1000; in ares__tvnow()
32 return now; in ares__tvnow()
46 struct timeval now; in ares__tvnow() local
49 now.tv_sec = tsnow.tv_sec; in ares__tvnow()
50 now.tv_usec = tsnow.tv_nsec / 1000; in ares__tvnow()
59 (void)gettimeofday(&now, NULL); /* LCOV_EXCL_LINE */ in ares__tvnow()
62 now.tv_sec = (long)time(NULL); in ares__tvnow()
63 now.tv_usec = 0; in ares__tvnow()
[all …]
/external/marisa-trie/bindings/ruby/
Dbenchmark.rb3 time_begin = Time.now
5 time_end = Time.now
8 time_begin = Time.now
13 time_end = Time.now
16 time_begin = Time.now
21 time_end = Time.now
24 time_begin = Time.now
29 time_end = Time.now
32 time_begin = Time.now
35 time_end = Time.now
[all …]
/external/openscreen/cast/streaming/
Dbandwidth_estimator_unittest.cc67 Clock::time_point now = kStartTime; in TEST_F() local
69 const Clock::time_point end = now + estimator()->history_window(); in TEST_F()
70 for (; now < end; now += kTimesliceDuration) { in TEST_F()
71 estimator()->OnBurstComplete(i, now); in TEST_F()
74 now = end; in TEST_F()
84 Clock::time_point now = kStartTime; in TEST_F() local
86 const Clock::time_point end = now + estimator()->history_window(); in TEST_F()
87 for (; now < end; now += kTimesliceDuration) { in TEST_F()
88 estimator()->OnBurstComplete(i, now); in TEST_F()
89 estimator()->OnRtcpReceived(now + kRoundTripTime, kRoundTripTime); in TEST_F()
[all …]
/external/libxml2/result/
Dent9.rdr11 2 3 #text 0 1 WE need lot of garbage now to trigger the problem
16 2 3 #text 0 1 WE need lot of garbage now to trigger the problem
21 2 3 #text 0 1 WE need lot of garbage now to trigger the problem
26 2 3 #text 0 1 WE need lot of garbage now to trigger the problem
31 2 3 #text 0 1 WE need lot of garbage now to trigger the problem
36 2 3 #text 0 1 WE need lot of garbage now to trigger the problem
41 2 3 #text 0 1 WE need lot of garbage now to trigger the problem
46 2 3 #text 0 1 WE need lot of garbage now to trigger the problem
51 2 3 #text 0 1 WE need lot of garbage now to trigger the problem
56 2 3 #text 0 1 WE need lot of garbage now to trigger the problem
[all …]
Dent9.rde20 2 3 #text 0 1 WE need lot of garbage now to trigger the problem
25 2 3 #text 0 1 WE need lot of garbage now to trigger the problem
30 2 3 #text 0 1 WE need lot of garbage now to trigger the problem
35 2 3 #text 0 1 WE need lot of garbage now to trigger the problem
40 2 3 #text 0 1 WE need lot of garbage now to trigger the problem
45 2 3 #text 0 1 WE need lot of garbage now to trigger the problem
50 2 3 #text 0 1 WE need lot of garbage now to trigger the problem
55 2 3 #text 0 1 WE need lot of garbage now to trigger the problem
60 2 3 #text 0 1 WE need lot of garbage now to trigger the problem
65 2 3 #text 0 1 WE need lot of garbage now to trigger the problem
[all …]
Dent9.sax28 SAX.characters( WE need lot of garbage now to, 50)
33 SAX.characters( WE need lot of garbage now to, 50)
38 SAX.characters( WE need lot of garbage now to, 50)
43 SAX.characters( WE need lot of garbage now to, 50)
48 SAX.characters( WE need lot of garbage now to, 50)
53 SAX.characters( WE need lot of garbage now to, 50)
58 SAX.characters( WE need lot of garbage now to, 50)
63 SAX.characters( WE need lot of garbage now to, 50)
68 SAX.characters( WE need lot of garbage now to, 50)
73 SAX.characters( WE need lot of garbage now to, 50)
[all …]
/external/curl/tests/libtest/
Dtestutil.c36 struct timeval now; in tutil_tvnow() local
38 now.tv_sec = milliseconds / 1000; in tutil_tvnow()
39 now.tv_usec = (milliseconds % 1000) * 1000; in tutil_tvnow()
40 return now; in tutil_tvnow()
54 struct timeval now; in tutil_tvnow() local
57 now.tv_sec = tsnow.tv_sec; in tutil_tvnow()
58 now.tv_usec = (int)(tsnow.tv_nsec / 1000); in tutil_tvnow()
67 (void)gettimeofday(&now, NULL); in tutil_tvnow()
70 now.tv_sec = (long)time(NULL); in tutil_tvnow()
71 now.tv_usec = 0; in tutil_tvnow()
[all …]
/external/rust/crates/quiche/src/recovery/
Dmod.rs198 handshake_status: HandshakeStatus, now: Instant, trace_id: &str, in on_packet_sent()
205 self.delivery_rate.on_packet_sent(&mut pkt, now); in on_packet_sent()
214 self.time_of_last_sent_ack_eliciting_pkt[epoch] = Some(now); in on_packet_sent()
222 self.on_packet_sent_cc(sent_bytes, now); in on_packet_sent()
224 self.set_loss_detection_timer(handshake_status, now); in on_packet_sent()
238 fn on_packet_sent_cc(&mut self, sent_bytes: usize, now: Instant) { in on_packet_sent_cc()
239 (self.cc_ops.on_packet_sent)(self, sent_bytes, now); in on_packet_sent_cc()
244 epoch: packet::Epoch, handshake_status: HandshakeStatus, now: Instant, in on_ack_received()
270 let mut largest_newly_acked_sent_time = now; in on_ack_received()
290 unacked.time_acked = Some(now); in on_ack_received()
[all …]
Dcubic.rs128 fn on_packet_sent(r: &mut Recovery, sent_bytes: usize, now: Instant) { in on_packet_sent()
135 let delta = now - last_sent_time; in on_packet_sent()
148 cubic.last_sent_time = Some(now); in on_packet_sent()
150 reno::on_packet_sent(r, sent_bytes, now); in on_packet_sent()
154 r: &mut Recovery, packet: &Acked, epoch: packet::Epoch, now: Instant, in on_packet_acked()
171 let (cwnd, ssthresh) = r.hystart_on_packet_acked(packet, now); in on_packet_acked()
201 ca_start_time = now; in on_packet_acked()
202 r.congestion_recovery_start_time = Some(now); in on_packet_acked()
210 let t = now - ca_start_time; in on_packet_acked()
237 let (lss_cwnd, _) = r.hystart_on_packet_acked(packet, now); in on_packet_acked()
[all …]
Dreno.rs53 r: &mut Recovery, packet: &Acked, epoch: packet::Epoch, now: Instant, in on_packet_acked()
68 let (cwnd, ssthresh) = r.hystart_on_packet_acked(packet, now); in on_packet_acked()
92 let (lss_cwnd, _) = r.hystart_on_packet_acked(packet, now); in on_packet_acked()
102 r: &mut Recovery, time_sent: Instant, epoch: packet::Epoch, now: Instant, in congestion_event()
107 r.congestion_recovery_start_time = Some(now); in congestion_event()
156 let now = Instant::now(); in reno_send() localVariable
158 r.on_packet_sent_cc(1000, now); in reno_send()
170 let now = Instant::now(); in reno_slow_start() localVariable
175 time_sent: now, in reno_slow_start()
182 delivered_time: std::time::Instant::now(), in reno_slow_start()
[all …]
/external/volley/src/test/java/com/android/volley/toolbox/
DHttpHeaderParserTest.java99 long now = System.currentTimeMillis(); in parseCacheHeaders_normalExpire() local
100 headers.put("Date", rfc1123Date(now)); in parseCacheHeaders_normalExpire()
101 headers.put("Last-Modified", rfc1123Date(now - ONE_DAY_MILLIS)); in parseCacheHeaders_normalExpire()
102 headers.put("Expires", rfc1123Date(now + ONE_HOUR_MILLIS)); in parseCacheHeaders_normalExpire()
108 assertEqualsWithin(entry.serverDate, now, ONE_MINUTE_MILLIS); in parseCacheHeaders_normalExpire()
109 assertEqualsWithin(entry.lastModified, (now - ONE_DAY_MILLIS), ONE_MINUTE_MILLIS); in parseCacheHeaders_normalExpire()
110 assertTrue(entry.softTtl >= (now + ONE_HOUR_MILLIS)); in parseCacheHeaders_normalExpire()
116 long now = System.currentTimeMillis(); in parseCacheHeaders_expiresInPast() local
117 headers.put("Date", rfc1123Date(now)); in parseCacheHeaders_expiresInPast()
118 headers.put("Expires", rfc1123Date(now - ONE_HOUR_MILLIS)); in parseCacheHeaders_expiresInPast()
[all …]
/external/rust/crates/grpcio-sys/grpc/src/core/lib/gpr/
Dtime_posix.cc68 struct timespec now; in now_impl() local
77 syscall(SYS_clock_gettime, clockid_for_gpr_clock[clock_type], &now); in now_impl()
79 clock_gettime(clockid_for_gpr_clock[clock_type], &now); in now_impl()
81 return gpr_from_timespec(now, clock_type); in now_impl()
104 gpr_timespec now; in now_impl() local
108 now.clock_type = clock; in now_impl()
115 now.tv_sec = now_tv.tv_sec; in now_impl()
116 now.tv_nsec = now_tv.tv_usec * 1000; in now_impl()
120 now.tv_sec = (int64_t)(now_dbl * 1e-9); in now_impl()
121 now.tv_nsec = (int32_t)(now_dbl - ((double)now.tv_sec) * 1e9); in now_impl()
[all …]
/external/marisa-trie/bindings/python/
Dbenchmark.py5 time_begin = datetime.datetime.now()
9 time_end = datetime.datetime.now()
12 time_begin = datetime.datetime.now()
16 time_end = datetime.datetime.now()
19 time_begin = datetime.datetime.now()
22 time_end = datetime.datetime.now()
25 time_begin = datetime.datetime.now()
29 time_end = datetime.datetime.now()
32 time_begin = datetime.datetime.now()
35 time_end = datetime.datetime.now()
[all …]
/external/rust/crates/instant/tests/
Dwasm.rs12 let now = Instant::now(); in test_instant_now() localVariable
14 while now.elapsed().as_millis() == 0 {} in test_instant_now()
16 assert!(now.elapsed().as_nanos() > 0); in test_instant_now()
21 let now = Instant::now(); in test_duration() localVariable
23 assert!(now.elapsed() < one_sec); in test_duration()
32 let now = Instant::now(); in test_checked_add() localVariable
34 assert!(now.checked_add(Duration::from_millis(1)).is_some()); in test_checked_add()
37 now.checked_add(Duration::new(u64::MAX, ONE_BILLION - 1)) in test_checked_add()
43 let now = Instant::now(); in test_checked_sub() localVariable
45 assert!(now.checked_sub(Duration::from_millis(1)).is_some()); in test_checked_sub()
[all …]
/external/grpc-grpc/src/php/tests/unit_tests/
DTimevalTest.php101 $now = Grpc\Timeval::now();
102 $this->assertLessThan(0, Grpc\Timeval::compare($zero, $now));
103 $this->assertLessThan(0, Grpc\Timeval::compare($now, $future));
108 $now = Grpc\Timeval::now();
109 $this->assertNotNull($now);
111 $deadline = $now->add($delta);
112 $this->assertGreaterThan(0, Grpc\Timeval::compare($deadline, $now));
117 $now = Grpc\Timeval::now();
119 $deadline = $now->subtract($delta);
120 $this->assertLessThan(0, Grpc\Timeval::compare($deadline, $now));
[all …]

12345678910>>...188