/system/vold/model/ |
EmulatedVolume.cpp | 110 nsecs_t now = systemTime(SYSTEM_TIME_BOOTTIME); local 111 if (nanoseconds_to_milliseconds(now - start) > 5000) {
|
/test/vts-testcase/hal/thermal/V1_0/target_stress/ |
thermal_hidl_stress_test.cpp | 53 auto now = std::chrono::system_clock::now(); local 55 status = cv_.wait_until(lock, now + std::chrono::seconds(TIMEOUT_PERIOD));
|
/toolchain/binutils/binutils-2.27/gold/ |
timer.cc | 93 Timer::get_time(TimeStats *now) 97 now->wall = (times(&t) * 1000) / ticks_per_sec; 98 now->user = (t.tms_utime * 1000) / ticks_per_sec; 99 now->sys = (t.tms_stime * 1000) / ticks_per_sec; 101 now->wall = get_run_time() / 1000; 102 now->user = 0; 103 now->sys = 0; 111 TimeStats now; local 112 this->get_time(&now); 114 delta.wall = now.wall - this->start_time_.wall [all...] |
/art/openjdkjvmti/ |
ti_phase.cc | 90 // TODO: Block events now. 104 jvmtiPhase now = PhaseUtil::current_phase_; local 105 DCHECK(now == JVMTI_PHASE_ONLOAD || 106 now == JVMTI_PHASE_PRIMORDIAL || 107 now == JVMTI_PHASE_START || 108 now == JVMTI_PHASE_LIVE || 109 now == JVMTI_PHASE_DEAD); 110 *phase_ptr = now; 115 jvmtiPhase now = PhaseUtil::current_phase_; local 116 DCHECK(now == JVMTI_PHASE_ONLOAD | [all...] |
/cts/tests/app/app/src/android/app/stubs/ |
MockReceiver.java | 58 long now = SystemClock.elapsedRealtime(); local 59 final long endTime = now + timeout; 61 while (!sReceived && now < endTime) { 63 sBlocker.wait(endTime - now); 66 now = SystemClock.elapsedRealtime();
|
PendingIntentStubActivity.java | 51 long now = SystemClock.elapsedRealtime(); local 52 final long endTime = now + timeout; 54 while (!sCreated && now < endTime) { 56 sBlocker.wait(endTime - now); 59 now = SystemClock.elapsedRealtime();
|
/device/google/wahoo/folio_daemon/ |
main.cpp | 97 time_t now = time(NULL); local 107 } else if (now > lastWarn + WARN_PERIOD) { 109 lastWarn = now;
|
/external/adhd/cras/src/server/ |
cras_tm.c | 104 struct timespec now; local 115 clock_gettime(CLOCK_MONOTONIC_RAW, &now); 117 if (timespec_sooner(min, &now)) { 123 subtract_timespecs(min, &now, ts); 129 struct timespec now; local 132 clock_gettime(CLOCK_MONOTONIC_RAW, &now); 141 if (timespec_sooner(&t->ts, &now)) {
|
/external/curl/docs/examples/ |
imap-multi.c | 43 struct timeval now; local 46 now.tv_sec = (long)time(NULL); 47 now.tv_usec = 0; 49 return now;
|
pop3-multi.c | 43 struct timeval now; local 46 now.tv_sec = (long)time(NULL); 47 now.tv_usec = 0; 49 return now;
|
/external/curl/lib/ |
rand.c | 89 struct curltime now = Curl_now(); local 91 randseed += (unsigned int)now.tv_usec + (unsigned int)now.tv_sec;
|
/external/curl/src/ |
tool_cb_dbg.c | 53 struct tm *now; local 68 now = localtime(&secs); /* not thread safe but we don't care */ 70 now->tm_hour, now->tm_min, now->tm_sec, (long)tv.tv_usec); 80 /* Ok, this is somewhat hackish but we do it undocumented for now */
|
/external/curl/tests/unit/ |
unit1303.c | 52 #define NOW(x,y) now.tv_sec = x; now.tv_usec = y 62 * N various values of now 77 struct curltime now; variable in typeref:struct:curltime 142 NOW(run[i].now_s, run[i].now_us); 144 timeout = Curl_timeleft(data, &now, run[i].connecting);
|
/external/google-benchmark/src/ |
timers.cc | 178 std::time_t now = Clock::to_time_t(Clock::now()); local 186 std::strftime(storage, sizeof(storage), "%x %X", ::localtime(&now)); 190 ::localtime_r(&now, &timeinfo); 195 written = std::strftime(storage, sizeof(storage), "%x %X", ::gmtime(&now)); 199 ::gmtime_r(&now, &timeinfo);
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/ |
AbstractTestLog.java | 117 Date now = new Date(); local 120 if(now.compareTo(dt)>=0){
|
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/ |
AbstractTestLog.java | 116 Date now = new Date(); local 119 if(now.compareTo(dt)>=0){
|
/external/libchrome/base/profiler/ |
tracked_time_unittest.cc | 27 // Now create a big time, to check that it is wrapped modulo 2^32. 55 base::TimeTicks ticks_before = base::TimeTicks::Now(); 59 TrackedTime now = TrackedTime::Now(); local 62 base::TimeTicks ticks_after = base::TimeTicks::Now(); 65 // Now make sure that we bracketed our tracked time nicely. 66 Duration before = now - TrackedTime(ticks_before); 68 Duration after = now - TrackedTime(ticks_after); 77 TrackedTime track_now = ThreadData::Now(); 86 base::TimeTicks ticks_before = base::TimeTicks::Now(); 92 TrackedTime now = ThreadData::Now(); local [all...] |
/external/libcxx/test/std/thread/thread.condition/thread.condition.condvar/ |
wait_until.pass.cpp | 35 static time_point now() function in struct:Clock 39 steady_clock::now().time_since_epoch() 58 Clock::time_point t0 = Clock::now(); 62 Clock::time_point t1 = Clock::now();
|
/external/libcxx/test/std/thread/thread.condition/thread.condition.condvarany/ |
wait_until.pass.cpp | 34 static time_point now() function in struct:Clock 38 steady_clock::now().time_since_epoch() 61 Clock::time_point t0 = Clock::now(); 65 Clock::time_point t1 = Clock::now();
|
/external/libcxx/utils/google-benchmark/src/ |
timers.cc | 178 std::time_t now = Clock::to_time_t(Clock::now()); local 186 std::strftime(storage, sizeof(storage), "%x %X", ::localtime(&now)); 190 ::localtime_r(&now, &timeinfo); 195 written = std::strftime(storage, sizeof(storage), "%x %X", ::gmtime(&now)); 199 ::gmtime_r(&now, &timeinfo);
|
/external/libevent/test/ |
test-dumpevents.c | 79 struct timeval now; local 148 evutil_gettimeofday(&now,NULL); 150 printf("Now= %ld.%06d\n",(long)now.tv_sec,(int)now.tv_usec);
|
/external/libvncserver/examples/ |
camera.c | 4 * Question: I need to display a live camera image via VNC. Until now I just 58 static struct timeval now={0,0}, then={0,0}; local 61 gettimeofday(&now,NULL); 63 dnow = now.tv_sec + (now.tv_usec /1000000.0); 68 memcpy((char *)&then, (char *)&now, sizeof(struct timeval)); 82 struct timeval now; local 105 gettimeofday(&now,NULL); 106 line = now.tv_usec / (1000000/HEIGHT);
|
/external/linux-kselftest/tools/testing/selftests/timers/ |
mqueue-lat.c | 63 struct timespec start, end, now, target; local 80 clock_gettime(CLOCK_REALTIME, &now); 81 target = now; 82 target = timespec_add(now, TARGET_TIMEOUT); /* 100ms */
|
set-2038.c | 50 struct timeval now; local 53 now.tv_sec = (time_t)time; 54 now.tv_usec = 0; 56 ret = settimeofday(&now, NULL); 104 /* Now test behavior near edges */
|
/external/ltp/testcases/realtime/func/sched_football/ |
sched_football.c | 134 struct timeval start, now; local 140 now = start; 146 while ((now.tv_sec - start.tv_sec) < game_length) { 148 gettimeofday(&now, NULL);
|