/external/chromium_org/content/browser/download/ |
rate_estimator_unittest.cc | 14 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...] |
rate_estimator.h | 26 base::TimeTicks now); 32 void Increment(uint32 count, base::TimeTicks now); 37 uint64 GetCountPerSecond(base::TimeTicks now) const; 40 void ClearOldBuckets(base::TimeTicks now); 41 void ResetBuckets(base::TimeTicks now);
|
/hardware/ril/librilutils/ |
librilutils.c | 21 struct timespec now; local 22 clock_gettime(CLOCK_MONOTONIC, &now); 23 return now.tv_sec * 1000000000LL + now.tv_nsec;
|
/development/tools/idegen/src/ |
Stopwatch.java | 25 long now = System.currentTimeMillis(); local 26 Log.info(label + ": " + (now - last) + "ms"); 27 last = now;
|
/build/tools/droiddoc/templates-ds/ |
timestamp.cs | 1 var BUILD_TIMESTAMP = "<?cs var:page.now ?>";
|
/build/tools/droiddoc/templates-sac/ |
timestamp.cs | 1 var BUILD_TIMESTAMP = "<?cs var:page.now ?>";
|
/build/tools/droiddoc/templates-sdk/ |
timestamp.cs | 1 var BUILD_TIMESTAMP = "<?cs var:page.now ?>";
|
/build/tools/droiddoc/templates-sdk-dyn/ |
timestamp.cs | 1 var BUILD_TIMESTAMP = "<?cs var:page.now ?>";
|
/external/doclava/res/assets/templates/ |
timestamp.cs | 1 var BUILD_TIMESTAMP = "<?cs var:page.now ?>";
|
/external/srec/portable/src/ |
ptimestamp.c | 36 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;
|
/frameworks/base/core/java/android/net/http/ |
Timer.java | 35 long now = SystemClock.uptimeMillis(); local 37 HttpLog.v(message + " " + (now - mLast) + " total " + (now - mStart)); 39 mLast = now;
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_strftime.py | 36 def _update_variables(self, now): 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 [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_strftime.py | 36 def _update_variables(self, now): 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 [all...] |
/external/chromium_org/net/quic/congestion_control/ |
leaky_bucket.h | 26 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);
|
leaky_bucket.cc | 17 void LeakyBucket::SetDrainingRate(QuicTime now, QuicBandwidth draining_rate) { 18 Update(now); 22 void LeakyBucket::Add(QuicTime now, QuicByteCount bytes) { 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) { 39 Update(now); 43 void LeakyBucket::Update(QuicTime now) { 44 QuicTime::Delta elapsed_time = now.Subtract(time_last_updated_) [all...] |
/device/generic/goldfish/opengl/shared/OpenglCodecCommon/ |
TimeUtils.cpp | 47 struct timespec now; 48 clock_gettime(CLOCK_MONOTONIC, &now); 49 long long iDiff = (now.tv_sec * 1000LL) + now.tv_nsec/1000000LL; 54 struct timeval now; 55 gettimeofday(&now, NULL); 56 long long iDiff = (now.tv_sec * 1000LL) + now.tv_usec/1000LL;
|
/external/libcxx/test/utilities/time/time.clock/time.clock.steady/ |
now.pass.cpp | 14 // static time_point now(); 22 C::time_point t1 = C::now(); 23 C::time_point t2 = C::now();
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.clock/time.clock.steady/ |
now.pass.cpp | 14 // static time_point now(); 22 C::time_point t1 = C::now(); 23 C::time_point t2 = C::now();
|
/ndk/tests/device/test-gnustl-2/jni/ |
hello.cpp | 5 time_t now = 0; local 9 std::cout << now; local
|
/sdk/emulator/opengl/shared/OpenglCodecCommon/ |
TimeUtils.cpp | 47 struct timespec now; 48 clock_gettime(CLOCK_MONOTONIC, &now); 49 long long iDiff = (now.tv_sec * 1000LL) + now.tv_nsec/1000000LL; 54 struct timeval now; 55 gettimeofday(&now, NULL); 56 long long iDiff = (now.tv_sec * 1000LL) + now.tv_usec/1000LL;
|
/external/jmdns/src/javax/jmdns/impl/ |
DNSListener.java | 22 * @param now 27 void updateRecord(DNSCache dnsCache, long now, DNSEntry record);
|
/external/chromium_org/net/dns/ |
host_cache_unittest.cc | 33 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 += base::TimeDelta::FromSeconds(4) 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/ |
tile_priority_unittest.cc | 11 TilePriority now(HIGH_RESOLUTION, TilePriority::NOW, 0); 16 TilePriority non_ideal_now(NON_IDEAL_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)) [all...] |
/frameworks/base/core/java/android/os/ |
ConditionVariable.java | 124 long now = System.currentTimeMillis(); local 125 long end = now + timeout; 126 while (!mCondition && now < end) { 128 this.wait(end-now); 132 now = System.currentTimeMillis();
|
/external/chromium_org/third_party/WebKit/Source/platform/ |
Clock.cpp | 38 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();
|