/external/srec/portable/src/ |
H A D | 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;
|
/external/chromium/chrome/browser/debugger/manual_tests/resources/ |
H A D | fib.js | 6 var started = Date.now(); 10 if (Date.now() - started >= 100) {
|
/external/llvm/unittests/Support/ |
H A D | TimeValue.cpp | 18 sys::TimeValue now = sys::TimeValue::now(); local 20 EXPECT_TRUE(abs(static_cast<long>(now_t - now.toEpochTime())) < 2);
|
/external/chromium/chrome/common/ |
H A D | thumbnail_score_unittest.cc | 10 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/qemu/telephony/ |
H A D | test1.c | 23 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/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
H A D | TimestampTest.java | 39 private Date now = new Date(); field in class:TimestampTest 53 new Timestamp(now, null); 64 Timestamp one = new Timestamp(now, cpath); 65 Timestamp two = new Timestamp(now, cpath); 79 assertSame(new Timestamp(now, cpath).getSignerCertPath(), cpath); 83 Timestamp t = new Timestamp(now, cpath); 84 assertEquals(now, t.getTimestamp()); 85 assertNotSame(now, t.getTimestamp()); 92 new Timestamp(now, cpath).toString();
|
/external/chromium/net/base/ |
H A D | host_cache_unittest.cc | 33 base::TimeTicks now; local 42 cache.Set(Key("foobar.com"), OK, AddressList(), now); 48 now += base::TimeDelta::FromSeconds(5); 52 cache.Set(Key("foobar2.com"), OK, AddressList(), now); 58 now += base::TimeDelta::FromSeconds(4); 61 EXPECT_EQ(entry1, cache.Lookup(Key("foobar.com"), now)); 62 EXPECT_EQ(entry2, cache.Lookup(Key("foobar2.com"), now)); 64 // Advance to t=10; entry1 is now expired. 65 now += base::TimeDelta::FromSeconds(1); 67 EXPECT_TRUE(cache.Lookup(Key("foobar.com"), now) 93 base::TimeTicks now; local 117 base::TimeTicks now; local 178 base::TimeTicks now = base::TimeTicks() + base::TimeDelta::FromSeconds(10); local 183 cache.Set(Key(hostname), OK, AddressList(), now); local 198 cache.Set(Key(hostname), ERR_NAME_NOT_RESOLVED, AddressList(), now); local 242 base::TimeTicks now = base::TimeTicks() + kSuccessEntryTTL; local 278 base::TimeTicks now; local 313 base::TimeTicks now; local 361 base::TimeTicks now; local 375 base::TimeTicks now; local [all...] |
/external/qemu/distrib/sdl-1.2.12/src/timer/mint/ |
H A D | SDL_systimer.c | 76 Uint32 now = start; local 79 now = SDL_Atari_hz200; 82 now = *((volatile long *)_hz_200); 86 return((now*5)-start); 91 Uint32 now; local 93 now = SDL_GetTicks(); 94 while ((SDL_GetTicks()-now)<ms){
|
/external/ipsec-tools/src/racoon/ |
H A D | throttle.c | 62 struct timeval now, penalty; local 72 sched_get_monotonic_time(&now); 75 timeradd(&now, &penalty, &te->penalty_ends); 89 struct timeval now, res; local 95 sched_get_monotonic_time(&now); 101 if (timercmp(&te->penalty_ends, &now, <)) { 134 timersub(&te->penalty_ends, &now, &remaining); 142 timeradd(&now, &res, &te->penalty_ends); 146 timersub(&te->penalty_ends, &now, &res);
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/ |
H A D | Timestamp_ImplTest.java | 40 private Date now = new Date(); field in class:Timestamp_ImplTest 47 assertTrue(new Timestamp(now, cpath).hashCode() == (now.hashCode() ^ cpath
|
/external/webkit/LayoutTests/fast/dom/Geolocation/script-tests/ |
H A D | timestamp.js | 12 var now = new Date().getTime(); 13 shouldBeTrue('now != 0'); 23 shouldBeTrue('now - 1 <= t'); // Avoid rounding errors 24 if (now - 1 > t) { 25 debug(" now - 1 = " + (now-1));
|
/external/bison/lib/ |
H A D | timevar.c | 200 get_time (now) 201 struct timevar_time_def *now; 203 now->user = 0; 204 now->sys = 0; 205 now->wall = 0; 213 now->wall = times (&tms) * ticks_to_msec; 215 now->user = tms.tms_utime * ticks_to_msec; 216 now->sys = tms.tms_stime * ticks_to_msec; 218 now->user = (tms.tms_utime + tms.tms_cutime) * ticks_to_msec; 219 now 289 struct timevar_time_def now; local 340 struct timevar_time_def now; local 401 struct timevar_time_def now; local 423 struct timevar_time_def now; local 453 struct timevar_time_def now; local [all...] |
/external/apache-http/src/org/apache/http/protocol/ |
H A D | HttpDateGenerator.java | 72 long now = System.currentTimeMillis(); 73 if (now - this.dateAsLong > 1000) { 75 this.dateAsText = this.dateformat.format(new Date(now)); 76 this.dateAsLong = now;
|
/external/chromium/chrome/browser/history/ |
H A D | history_unittest_base.cc | 24 int64 now = base::Time::Now().ToInternalValue(); local 26 sql_time.push_back(StringPrintf("%" PRId64, now)); // last_visit_time 27 sql_time.push_back(StringPrintf("%" PRId64, now)); // visit_time 28 sql_time.push_back(StringPrintf("%" PRId64, now)); // time_slot
|
/external/webkit/Tools/QueueStatusServer/handlers/ |
H A D | nextpatch.py | 54 now = datetime.now() 56 active_work_items.deactivate_expired(now) 57 next_item = active_work_items.next_item(work_item_ids, now)
|
/external/chromium/base/synchronization/ |
H A D | condition_variable_posix.cc | 46 struct timeval now; local 47 gettimeofday(&now, NULL); 50 abstime.tv_sec = now.tv_sec + (usecs / Time::kMicrosecondsPerSecond); 51 abstime.tv_nsec = (now.tv_usec + (usecs % Time::kMicrosecondsPerSecond)) * 55 DCHECK_GE(abstime.tv_sec, now.tv_sec); // Overflow paranoia
|
/external/skia/gpu/include/ |
H A D | GrStopwatch.h | 86 PLATFORM_TIMER::Timestamp now = PLATFORM_TIMER::Now(); local 87 return PLATFORM_TIMER::Elapsed(fLastStart, now); 108 LARGE_INTEGER now; local 109 QueryPerformanceCounter(&now); 110 return now;
|
/external/qemu/distrib/sdl-1.2.12/src/timer/unix/ |
H A D | SDL_systimer.c | 75 struct timespec now; local 76 clock_gettime(CLOCK_MONOTONIC,&now); 77 ticks=(now.tv_sec-start.tv_sec)*1000+(now.tv_nsec-start.tv_nsec)/1000000; 81 struct timeval now; 82 gettimeofday(&now, NULL); 83 ticks=(now.tv_sec-start.tv_sec)*1000+(now.tv_usec-start.tv_usec)/1000; 102 Uint32 then, now, elapsed; 121 now [all...] |
/external/qemu/distrib/sdl-1.2.12/src/timer/macos/ |
H A D | SDL_MPWtimer.c | 50 UnsignedWide now; local 52 Microseconds(&now); 53 start = WideTo64bit(now); 62 UnsignedWide now; local 64 Microseconds(&now); 65 return (Uint32)((WideTo64bit(now)-start)/1000);
|
/external/qemu/distrib/sdl-1.2.12/src/timer/win32/ |
H A D | SDL_systimer.c | 75 DWORD now, ticks; local 81 now = GetTickCount(); 95 now = timeGetTime(); 99 if ( now < start ) { 100 ticks = (TIME_WRAP_VALUE-start) + now; 102 ticks = (now - start);
|
/external/webkit/Source/JavaScriptCore/wtf/ |
H A D | CurrentTime.cpp | 259 GTimeVal now; local 260 g_get_current_time(&now); 261 return static_cast<double>(now.tv_sec) + static_cast<double>(now.tv_usec / 1000000.0); 268 wxDateTime now = wxDateTime::UNow(); local 269 return (double)now.GetTicks() + (double)(now.GetMillisecond() / 1000.0); 290 struct timeval now; local 291 gettimeofday(&now, 0); 292 return now [all...] |
/external/wpa_supplicant_8/hostapd/src/ap/ |
H A D | tkip_countermeasures.c | 65 time_t now; local 85 time(&now); 86 if (now > hapd->michael_mic_failure + 60) { 93 hapd->michael_mic_failure = now;
|
/external/wpa_supplicant_8/src/ap/ |
H A D | tkip_countermeasures.c | 65 time_t now; local 85 time(&now); 86 if (now > hapd->michael_mic_failure + 60) { 93 hapd->michael_mic_failure = now;
|
/external/wpa_supplicant_8/wpa_supplicant/src/ap/ |
H A D | tkip_countermeasures.c | 65 time_t now; local 85 time(&now); 86 if (now > hapd->michael_mic_failure + 60) { 93 hapd->michael_mic_failure = now;
|
/external/blktrace/btt/ |
H A D | plat.c | 69 double now = TO_SEC(ts); local 76 pp->first_ts = pp->last_ts = now; 79 } else if ((now - pp->first_ts) >= plat_freq) { 85 pp->first_ts = pp->last_ts = now; 89 pp->last_ts = now;
|