/hardware/ril/librilutils/ |
H A D | librilutils.c | 21 struct timespec now; local 22 clock_gettime(CLOCK_MONOTONIC, &now); 23 return now.tv_sec * 1000000000LL + now.tv_nsec;
|
/hardware/bsp/intel/peripheral/libupm/examples/javascript/ |
H A D | tm1637.js | 36 var now = new Date(); 37 console.log("System time: " + now.getHours() + ":" + ("0" + now.getMinutes()).slice(-2)); 42 now = new Date(); 43 var time = now.getHours().toString() + ("0" + now.getMinutes().toString()).slice(-2);
|
H A D | ldt0028.js | 79 var startTime = Date.now(); 80 while (Date.now() - startTime < milliseconds);
|
/hardware/bsp/intel/peripheral/libupm/examples/java/ |
H A D | TM1637Sample.java | 53 LocalDateTime now; 55 now = LocalDateTime.now(); 56 int hour = now.getHour(); 57 int min = now.getMinute(); 58 int sec = now.getSecond();
|
/hardware/qcom/wlan/qcwcn/wifi_hal/ |
H A D | sync.h | 66 struct timeval now; local 68 gettimeofday(&now,NULL); 70 abstime.tv_sec += now.tv_sec; 71 if(((abstime.tv_nsec + now.tv_usec*1000) > 1000*1000*1000) || (abstime.tv_nsec + now.tv_usec*1000 < 0)) 74 abstime.tv_nsec += now.tv_usec * 1000; 79 abstime.tv_nsec += now.tv_usec * 1000;
|
H A D | rb_wrapper.h | 50 void rb_check_for_timeout(struct rb_info *rb_info, struct timeval *now);
|
/hardware/bsp/intel/peripheral/libupm/src/groveehr/ |
H A D | groveehr.cxx | 61 struct timeval elapsed, now; local 65 gettimeofday(&now, NULL); 68 if( (elapsed.tv_usec = now.tv_usec - m_startTime.tv_usec) < 0 ) 71 elapsed.tv_sec = now.tv_sec - m_startTime.tv_sec - 1; 75 elapsed.tv_sec = now.tv_sec - m_startTime.tv_sec;
|
/hardware/bsp/intel/peripheral/libupm/src/grovewfs/ |
H A D | grovewfs.cxx | 65 struct timeval elapsed, now; local 69 gettimeofday(&now, NULL); 72 if( (elapsed.tv_usec = now.tv_usec - m_startTime.tv_usec) < 0 ) 75 elapsed.tv_sec = now.tv_sec - m_startTime.tv_sec - 1; 79 elapsed.tv_sec = now.tv_sec - m_startTime.tv_sec;
|
/hardware/bsp/intel/peripheral/libupm/src/ta12200/ |
H A D | ta12200.cxx | 58 struct timeval elapsed, now; local 62 gettimeofday(&now, NULL); 65 if( (elapsed.tv_usec = now.tv_usec - m_startTime.tv_usec) < 0 ) 68 elapsed.tv_sec = now.tv_sec - m_startTime.tv_sec - 1; 72 elapsed.tv_sec = now.tv_sec - m_startTime.tv_sec;
|
/hardware/bsp/intel/peripheral/libupm/src/wheelencoder/ |
H A D | wheelencoder.cxx | 54 struct timeval elapsed, now; local 58 gettimeofday(&now, NULL); 61 if( (elapsed.tv_usec = now.tv_usec - m_startTime.tv_usec) < 0 ) 64 elapsed.tv_sec = now.tv_sec - m_startTime.tv_sec - 1; 68 elapsed.tv_sec = now.tv_sec - m_startTime.tv_sec;
|
/hardware/intel/img/hwcomposer/merrifield/common/observers/ |
H A D | SoftVsyncObserver.cpp | 126 const nsecs_t now = systemTime(CLOCK_MONOTONIC); local 128 nsecs_t sleep = next_vsync - now; 131 sleep = (period - ((now - next_vsync) % period)); 132 next_vsync = now + sleep;
|
/hardware/intel/img/hwcomposer/moorefield_hdmi/common/observers/ |
H A D | SoftVsyncObserver.cpp | 122 const nsecs_t now = systemTime(CLOCK_MONOTONIC); local 124 nsecs_t sleep = next_vsync - now; 127 sleep = (period - ((now - next_vsync) % period)); 128 next_vsync = now + sleep;
|
/hardware/ril/libril/ |
H A D | ril_event.cpp | 162 struct timeval now; local 166 getNow(&now); 167 // walk list, see if now >= ev->timeout for any events 169 dlog("~~~~ Looking for timers <= %ds + %dus ~~~~", (int)now.tv_sec, (int)now.tv_usec); 170 while ((tev != &timer_list) && (timercmp(&now, &tev->timeout, >))) { 218 struct timeval now; local 220 getNow(&now); 228 dlog("~~~~ now = %ds + %dus ~~~~", (int)now 297 struct timeval now; local [all...] |
/hardware/libhardware/modules/local_time/ |
H A D | local_time_hw.c | 38 uint64_t now; local 48 now = (((uint64_t)ts.tv_sec) * 1000000000ull) + 51 return (int64_t)now;
|
/hardware/qcom/gps/msm8084/utils/ |
H A D | loc_log.cpp | 171 struct timeval now; /* sec and usec */ local 175 gettimeofday(&now, NULL); 176 localtime_r(&now.tv_sec, &now_tm); 179 snprintf(time_string, buf_size, "%s.%03d", hms_string, (int) (now.tv_usec / 1000));
|
/hardware/qcom/gps/msm8909/utils/ |
H A D | loc_log.cpp | 173 struct timeval now; /* sec and usec */ local 177 gettimeofday(&now, NULL); 178 localtime_r(&now.tv_sec, &now_tm); 181 snprintf(time_string, buf_size, "%s.%03d", hms_string, (int) (now.tv_usec / 1000));
|
H A D | LocTimer.cpp | 288 // if tree is empty now, we remove poll and disarm timer 361 struct timespec now; local 362 // get time spec of now 363 clock_gettime(CLOCK_BOOTTIME, &now); 364 LocTimerDelegate timerOfNow(now); 365 // pop everything in the heap that outRanks now, i.e. has time older than now 647 struct timespec now; local 648 clock_gettime(CLOCK_BOOTTIME, &now); 649 return now; 656 struct timespec now; local 673 struct timespec now = getTimerWrapper(0); local [all...] |
/hardware/qcom/gps/msm8960/utils/ |
H A D | loc_log.cpp | 171 struct timeval now; /* sec and usec */ local 175 gettimeofday(&now, NULL); 176 localtime_r(&now.tv_sec, &now_tm); 179 snprintf(time_string, buf_size, "%s.%03d", hms_string, (int) (now.tv_usec / 1000));
|
/hardware/qcom/gps/msm8994/utils/ |
H A D | loc_log.cpp | 172 struct timeval now; /* sec and usec */ local 176 gettimeofday(&now, NULL); 177 localtime_r(&now.tv_sec, &now_tm); 180 snprintf(time_string, buf_size, "%s.%03d", hms_string, (int) (now.tv_usec / 1000));
|
/hardware/qcom/gps/msm8996/utils/ |
H A D | loc_log.cpp | 173 struct timeval now; /* sec and usec */ local 177 gettimeofday(&now, NULL); 178 localtime_r(&now.tv_sec, &now_tm); 181 snprintf(time_string, buf_size, "%s.%03d", hms_string, (int) (now.tv_usec / 1000));
|
H A D | LocTimer.cpp | 288 // if tree is empty now, we remove poll and disarm timer 361 struct timespec now; local 362 // get time spec of now 363 clock_gettime(CLOCK_BOOTTIME, &now); 364 LocTimerDelegate timerOfNow(now); 365 // pop everything in the heap that outRanks now, i.e. has time older than now 647 struct timespec now; local 648 clock_gettime(CLOCK_BOOTTIME, &now); 649 return now; 656 struct timespec now; local 673 struct timespec now = getTimerWrapper(0); local [all...] |
/hardware/qcom/gps/utils/ |
H A D | loc_log.cpp | 172 struct timeval now; /* sec and usec */ local 176 gettimeofday(&now, NULL); 177 localtime_r(&now.tv_sec, &now_tm); 180 snprintf(time_string, buf_size, "%s.%03d", hms_string, (int) (now.tv_usec / 1000));
|
/hardware/libhardware/tests/input/evdev/ |
H A D | InputDevice_test.cpp | 103 auto now = systemTime(SYSTEM_TIME_MONOTONIC); local 107 InputEvent event = { now + s2ns(60), EV_KEY, KEY_HOME, 1 }; 109 device->processInput(event, now); 111 EXPECT_NEAR(now, event.when, ms2ns(TIMING_TOLERANCE_MS)); 119 auto now = systemTime(SYSTEM_TIME_MONOTONIC); local 121 // Input event from now, but will be reported as if it came early. 122 InputEvent event = { now, EV_KEY, KEY_HOME, 1 }; 126 device->processInput(event, now - s2ns(11)); 128 EXPECT_NEAR(now, event.when, ms2ns(TIMING_TOLERANCE_MS)); 145 // Eventually these mock device tests will all expect these calls. For now [all...] |
/hardware/bsp/intel/peripheral/libupm/src/grovemd/ |
H A D | grovemd.cxx | 189 struct timeval elapsed, now; local 193 gettimeofday(&now, NULL); 196 if( (elapsed.tv_usec = now.tv_usec - m_startTime.tv_usec) < 0 ) 199 elapsed.tv_sec = now.tv_sec - m_startTime.tv_sec - 1; 203 elapsed.tv_sec = now.tv_sec - m_startTime.tv_sec;
|
/hardware/bsp/intel/peripheral/libupm/src/uln200xa/ |
H A D | uln200xa.cxx | 91 struct timeval elapsed, now; local 95 gettimeofday(&now, NULL); 98 if( (elapsed.tv_usec = now.tv_usec - m_startTime.tv_usec) < 0 ) 101 elapsed.tv_sec = now.tv_sec - m_startTime.tv_sec - 1; 105 elapsed.tv_sec = now.tv_sec - m_startTime.tv_sec;
|