/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;
|
/external/syslinux/ |
now.pl | 7 undef $now; 12 if ( !defined($now) || $now < $mtime ) { 13 $now = $mtime; 17 if ( !defined($now) ) { 18 $now = time; 21 printf "0x%08x\n", $now;
|
/development/tools/idegen/src/ |
Stopwatch.java | 25 long now = System.currentTimeMillis(); local 26 Log.info(label + ": " + (now - last) + "ms"); 27 last = now;
|
/frameworks/base/services/core/java/com/android/server/notification/ |
AlertRateLimiter.java | 27 boolean shouldRateLimitAlert(long now) { 28 final long millisSinceLast = now - mLastNotificationMillis; 32 mLastNotificationMillis = now;
|
RateEstimator.java | 37 public float update(long now) { 44 mInterarrivalTime = getInterarrivalEstimate(now); 47 mLastEventTime = now; 51 /** @return the estimated rate if there were a new event right now. */ 52 public float getRate(long now) { 56 return (float) (1.0 / getInterarrivalEstimate(now)); 59 /** @return the average inter-arrival time if there were a new event right now. */ 60 private double getInterarrivalEstimate(long now) { 61 double dt = ((double) (now - mLastEventTime)) / 1000.0;
|
/build/make/tools/droiddoc/templates-ndk/ |
timestamp.cs | 1 var BUILD_TIMESTAMP = "<?cs var:page.now ?>";
|
/external/curl/src/ |
tool_util.c | 42 struct timeval now; local 48 now.tv_sec = (long)(milliseconds / 1000); 49 now.tv_usec = (milliseconds % 1000) * 1000; 50 return now; 64 struct timeval now; local 67 now.tv_sec = tsnow.tv_sec; 68 now.tv_usec = tsnow.tv_nsec / 1000; 77 (void)gettimeofday(&now, NULL); 80 now.tv_sec = (long)time(NULL); 81 now.tv_usec = 0 96 struct timeval now; local 108 struct timeval now; local [all...] |
/external/curl/tests/libtest/ |
testutil.c | 36 struct timeval now; local 38 now.tv_sec = milliseconds / 1000; 39 now.tv_usec = (milliseconds % 1000) * 1000; 40 return now; 54 struct timeval now; local 57 now.tv_sec = tsnow.tv_sec; 58 now.tv_usec = tsnow.tv_nsec / 1000; 67 (void)gettimeofday(&now, NULL); 70 now.tv_sec = (long)time(NULL); 71 now.tv_usec = 0 86 struct timeval now; local 98 struct timeval now; local [all...] |
/external/doclava/res/assets/templates/ |
timestamp.cs | 1 var BUILD_TIMESTAMP = "<?cs var:page.now ?>";
|
/external/doclava/res/assets/templates-sdk/ |
timestamp.cs | 1 var BUILD_TIMESTAMP = "<?cs var:page.now ?>";
|
/system/netd/include/ |
Stopwatch.h | 24 Stopwatch() : mStart(clock::now()) {} 29 return getElapsed(clock::now()); 33 const auto& now = clock::now(); local 34 float elapsed = getElapsed(now); 35 mStart = now; 44 float getElapsed(const time_point& now) const { 46 return (std::chrono::duration_cast<ms>(now - mStart)).count();
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/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/python/cpython2/Lib/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/python/cpython3/Lib/test/ |
test_strftime.py | 34 def _update_variables(self, now): 36 self.gmt = time.gmtime(now) 37 now = time.localtime(now) 39 if now[3] < 12: self.ampm='(AM|am)' 42 self.jan1 = time.localtime(time.mktime((now[0], 1, 1, 0, 0, 0, 0, 1, 0))) 45 if now[8]: self.tz = time.tzname[1] 50 if now[3] > 12: self.clock12 = now[3] - 12 51 elif now[3] > 0: self.clock12 = now[3 [all...] |
/external/valgrind/helgrind/tests/ |
cond_timedwait_test.c | 9 struct timespec now; local 10 memset(&now, 0, sizeof(now)); 13 pthread_cond_timedwait(&cond, &mutex, &now);
|
/prebuilts/gdb/darwin-x86/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/gdb/linux-x86/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/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/ltp/testcases/open_posix_testsuite/stress/threads/fork/ |
testfrmw.c | 50 struct tm *now; local 55 now = localtime(&nw); 56 if (now == NULL) 59 printf("[%2.2d:%2.2d:%2.2d]", now->tm_hour, now->tm_min, 60 now->tm_sec);
|
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cancel/ |
testfrmw.c | 50 struct tm *now; local 55 now = localtime(&nw); 56 if (now == NULL) 59 printf("[%2.2d:%2.2d:%2.2d]", now->tm_hour, now->tm_min, 60 now->tm_sec);
|
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cond_wait/ |
testfrmw.c | 50 struct tm *now; local 55 now = localtime(&nw); 56 if (now == NULL) 59 printf("[%2.2d:%2.2d:%2.2d]", now->tm_hour, now->tm_min, 60 now->tm_sec);
|
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_create/ |
testfrmw.c | 50 struct tm *now; local 55 now = localtime(&nw); 56 if (now == NULL) 59 printf("[%2.2d:%2.2d:%2.2d]", now->tm_hour, now->tm_min, 60 now->tm_sec);
|
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_exit/ |
testfrmw.c | 50 struct tm *now; local 55 now = localtime(&nw); 56 if (now == NULL) 59 printf("[%2.2d:%2.2d:%2.2d]", now->tm_hour, now->tm_min, 60 now->tm_sec);
|
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_getschedparam/ |
testfrmw.c | 50 struct tm *now; local 55 now = localtime(&nw); 56 if (now == NULL) 59 printf("[%2.2d:%2.2d:%2.2d]", now->tm_hour, now->tm_min, 60 now->tm_sec);
|