Searched refs:now (Results 1 - 25 of 1331) sorted by relevance

1234567891011>>

/external/chromium_org/content/browser/download/
H A Drate_estimator_unittest.cc14 base::TimeTicks now; local
15 RateEstimator estimator(TimeDelta::FromSeconds(1), 10u, now);
16 EXPECT_EQ(0u, estimator.GetCountPerSecond(now));
18 estimator.Increment(50u, now);
19 EXPECT_EQ(50u, estimator.GetCountPerSecond(now));
21 now += TimeDelta::FromMilliseconds(800);
22 estimator.Increment(50, now);
23 EXPECT_EQ(100u, estimator.GetCountPerSecond(now));
26 now += TimeDelta::FromSeconds(3);
27 EXPECT_EQ(25u, estimator.GetCountPerSecond(now));
[all...]
/external/chromium_org/v8/test/intl/date-format/
H A Dformat-is-bound.js32 var dateArray = [Date.now(), Date.now(), Date.now()];
/external/chromium_org/v8/test/webkit/
H A Ddfg-int32-to-double-on-set-local-and-exit.js37 a = Date.now() + Date.now() + Date.now() + Date.now() + Date.now() + Date.now();
42 return Date.now() + Date.now() + Date.now() + Date.now()
[all...]
H A Ddfg-int32-to-double-on-set-local-and-sometimes-exit.js37 a = Date.now() + Date.now() + Date.now() + Date.now() + Date.now() + Date.now();
44 return Date.now() + Date.now() + Date.now() + Date.now()
[all...]
/external/chromium_org/v8/test/mjsunit/
H A Dd8-performance-now.js30 // Test the performance.now() function of d8. This test only makes sense with
33 if (this.performance && performance.now) {
35 var start_test = performance.now();
37 for (var start = performance.now();
39 start = performance.now()) {
40 var end = performance.now();
44 var next = performance.now();
/external/srec/portable/src/
H A Dptimestamp.c36 struct _timeb now;
38 _ftime(&now);
39 timestamp->secs = now.time;
40 timestamp->msecs = now.millitm;
42 struct timespec now;
43 clock_gettime(CLOCK_REALTIME, &now);
44 timestamp->secs = now.tv_sec;
45 timestamp->msecs = now.tv_nsec / MSECOND2NSECOND;
/external/libcxx/test/utilities/time/time.clock/time.clock.steady/
H A Dnow.pass.cpp14 // static time_point now();
22 C::time_point t1 = C::now();
23 C::time_point t2 = C::now();
/external/jmdns/src/javax/jmdns/impl/
H A DDNSListener.java22 * @param now
27 void updateRecord(DNSCache dnsCache, long now, DNSEntry record); argument
/external/chromium_org/net/dns/
H A Dhost_cache_unittest.cc33 base::TimeTicks now; local
42 EXPECT_FALSE(cache.Lookup(key1, now));
43 cache.Set(key1, entry, now, kTTL);
44 EXPECT_TRUE(cache.Lookup(key1, now));
45 EXPECT_TRUE(cache.Lookup(key1, now)->error == entry.error);
50 now += base::TimeDelta::FromSeconds(5);
53 EXPECT_FALSE(cache.Lookup(key2, now));
54 cache.Set(key2, entry, now, kTTL);
55 EXPECT_TRUE(cache.Lookup(key2, now));
59 now
97 base::TimeTicks now; local
125 base::TimeTicks now; local
186 base::TimeTicks now; local
219 base::TimeTicks now; local
263 base::TimeTicks now; local
281 base::TimeTicks now; local
[all...]
/external/chromium_org/cc/resources/
H A Dtile_priority_unittest.cc11 TilePriority now(HIGH_RESOLUTION, TilePriority::NOW, 0);
18 EXPECT_FALSE(now.IsHigherPriorityThan(now));
19 EXPECT_FALSE(now.IsHigherPriorityThan(non_ideal_now));
21 EXPECT_TRUE(now.IsHigherPriorityThan(close_soon));
22 EXPECT_TRUE(now.IsHigherPriorityThan(far_soon));
23 EXPECT_TRUE(now.IsHigherPriorityThan(close_eventually));
24 EXPECT_TRUE(now.IsHigherPriorityThan(far_eventually));
35 EXPECT_FALSE(far_eventually.IsHigherPriorityThan(now));
39 EXPECT_FALSE(close_eventually.IsHigherPriorityThan(now));
[all...]
/external/chromium_org/net/quic/congestion_control/
H A Dleaky_bucket.h26 void SetDrainingRate(QuicTime now, QuicBandwidth draining_rate);
29 void Add(QuicTime now, QuicByteCount bytes);
32 QuicTime::Delta TimeRemaining(QuicTime now) const;
35 QuicByteCount BytesPending(QuicTime now);
38 void Update(QuicTime now);
H A Dleaky_bucket.cc17 void LeakyBucket::SetDrainingRate(QuicTime now, QuicBandwidth draining_rate) { argument
18 Update(now);
22 void LeakyBucket::Add(QuicTime now, QuicByteCount bytes) { argument
23 Update(now);
27 QuicTime::Delta LeakyBucket::TimeRemaining(QuicTime now) const {
28 QuicTime::Delta time_since_last_update = now.Subtract(time_last_updated_);
38 QuicByteCount LeakyBucket::BytesPending(QuicTime now) { argument
39 Update(now);
43 void LeakyBucket::Update(QuicTime now) { argument
44 QuicTime::Delta elapsed_time = now
[all...]
/external/chromium_org/third_party/WebKit/Source/platform/
H A DClock.cpp38 m_startTime = m_lastTime = now();
43 m_startTime = m_lastTime = now();
55 m_lastTime = m_startTime = now();
64 m_lastTime = m_startTime = now();
74 m_lastTime = m_startTime = now();
78 double Clock::now() const function in class:blink::Clock
86 m_lastTime = now();
/external/chromium_org/net/base/
H A Dexpiring_cache_unittest.cc28 bool operator()(const std::string& now, argument
30 return now != expiration;
42 base::TimeTicks now; local
46 EXPECT_FALSE(cache.Get("entry1", now));
47 cache.Put("entry1", "test1", now, now + kTTL);
48 EXPECT_THAT(cache.Get("entry1", now), Pointee(StrEq("test1")));
52 now += base::TimeDelta::FromSeconds(5);
55 EXPECT_FALSE(cache.Get("entry2", now));
56 cache.Put("entry2", "test2", now, no
97 base::TimeTicks now; local
164 base::TimeTicks now = base::TimeTicks() + kTTL; local
201 base::TimeTicks now; local
221 base::TimeTicks now; local
[all...]
/external/lldb/tools/debugserver/source/
H A DDNBTimer.h67 // Reset the time value to now
93 // Return the number of microseconds elapsed between now and the
100 struct timeval now; local
101 gettimeofday (&now, NULL);
102 uint64_t now_usec = (uint64_t)(now.tv_sec) * 1000000ull + (uint64_t)now.tv_usec;
107 m_timeval = now;
113 struct timeval now; local
114 gettimeofday (&now, NULL);
115 uint64_t now_usec = (uint64_t)(now
124 struct timeval now; local
141 struct timespec now; local
[all...]
/external/chromium_org/net/quic/
H A Dquic_clock_test.cc16 QuicTime now = clock.ApproximateNow(); local
19 EXPECT_LE(start, now);
20 EXPECT_LE(now, end);
27 QuicWallTime now = clock.WallNow(); local
30 // If end > start, then we can check now is between start and end.
32 EXPECT_LE(static_cast<uint64>(start.ToTimeT()), now.ToUNIXSeconds());
33 EXPECT_LE(now.ToUNIXSeconds(), static_cast<uint64>(end.ToTimeT()));
/external/chromium_org/ui/events/gestures/
H A Dfling_curve_unittest.cc14 base::TimeTicks now = gfx::FrameTime::Now(); local
15 FlingCurve curve(velocity, now);
18 curve.GetScrollAmountAtTime(now + base::TimeDelta::FromMilliseconds(20));
23 curve.GetScrollAmountAtTime(now + base::TimeDelta::FromMilliseconds(250));
28 curve.GetScrollAmountAtTime(now + base::TimeDelta::FromSeconds(10));
33 now + base::TimeDelta::FromSeconds(20)).IsZero());
/external/chromium_org/components/history/core/common/
H A Dthumbnail_score_unittest.cc10 base::Time now = base::Time::Now(); local
12 ThumbnailScore nothing_good(0.5, false, false, now);
13 ThumbnailScore not_at_top(0.5, false, true, now);
14 ThumbnailScore bad_clipping(0.5, true, false, now);
15 ThumbnailScore life_is_awesome(0.5, true, true, now);
29 base::Time now = base::Time::Now(); local
30 base::Time last_year = now - base::TimeDelta::FromDays(365);
33 ThumbnailScore newie_but_crappie(0.9, true, true, now);
40 base::Time now = base::Time::Now(); local
42 ThumbnailScore no_redirects(0.5, true, true, now);
[all...]
/external/chromium_org/tools/traceline/traceline/
H A Drdtsc.h21 LARGE_INTEGER freq, now; local
27 if (QueryPerformanceCounter(&now) == 0) {
30 start_ = now.QuadPart;
/external/qemu/distrib/sdl-1.2.15/src/timer/nds/
H A DSDL_systimer.c49 Uint32 now; local
50 now=timers2ms(TIMER0_DATA, TIMER1_DATA);
51 while((Uint32)timers2ms(TIMER0_DATA, TIMER1_DATA)<now+ms);
/external/qemu/telephony/
H A Dtest1.c23 SysTime now = sys_time_ms(); local
26 printf( "tick %d/%d a %.2fs\n", counter, MAX_COUNTER, now/1000. );
28 sys_timer_set( timer, now + 2000, timer_func, timer );
/external/chromium_org/mojo/apps/js/bindings/
H A Dmonotonic_clock_unittests.js15 var now = monotonicClock.seconds();
16 expect(now).toBeGreaterThan(then);
/external/libcxx/test/utilities/time/time.clock/time.clock.hires/
H A Dnow.pass.cpp14 // static time_point now();
21 C::time_point t1 = C::now();
/external/libcxx/test/utilities/time/time.clock/time.clock.system/
H A Dnow.pass.cpp14 // static time_point now();
21 C::time_point t1 = C::now();
H A Dto_time_t.pass.cpp22 std::time_t t1 = C::to_time_t(C::now());

Completed in 772 milliseconds

1234567891011>>