Searched defs:tm (Results 1 - 8 of 8) sorted by relevance
/system/extras/tests/icachetest/ |
H A D | icache_main.c | 11 struct timeval now, tm; local 21 gettimeofday(&tm, 0); 22 t = (tm.tv_sec*1000000LL+tm.tv_usec) - (now.tv_sec*1000000LL+now.tv_usec); 28 gettimeofday(&tm, 0); 29 t = (tm.tv_sec*1000000LL+tm.tv_usec) - (now.tv_sec*1000000LL+now.tv_usec);
|
/system/core/toolbox/ |
H A D | alarm.c | 15 struct tm tm; local 75 res = ioctl(fd, RTC_ALM_READ, &tm); 82 t = timegm(&tm); 84 gmtime_r(&t, &tm); 86 localtime_r(&t, &tm); 89 asctime_r(&tm, strbuf); 95 res = ioctl(fd, RTC_RD_TIME, &tm); 100 asctime_r(&tm, strbuf); 108 //strptime(argv[optind], NULL, &tm); [all...] |
H A D | touch.c | 18 struct tm tm; local 31 tm.tm_year = day / 10000 - 1900; 32 tm.tm_mon = (day % 10000) / 100 - 1; 33 tm.tm_mday = day % 100; 34 tm.tm_hour = hour / 10000; 35 tm.tm_min = (hour % 10000) / 100; 36 tm.tm_sec = hour % 100; 37 tm.tm_isdst = -1; 39 return mktime(&tm); [all...] |
H A D | date.c | 27 static int settime_alarm_tm(struct tm *tm) { argument 31 t = mktime(tm); 45 static int settime_rtc_tm(struct tm *tm) { argument 54 tv.tv_sec = mktime(tm); 62 rtc.tm_sec = tm->tm_sec; 63 rtc.tm_min = tm->tm_min; 64 rtc.tm_hour = tm->tm_hour; 65 rtc.tm_mday = tm 79 struct tm tm, *err; local 90 struct tm tm; local 145 struct tm tm; local [all...] |
H A D | newfs_msdos.c | 253 struct tm *tm; local 640 tm = localtime(&now); 689 x = (((u_int)(1 + tm->tm_mon) << 8 | 690 (u_int)tm->tm_mday) + 691 ((u_int)tm->tm_sec << 8 | 693 ((u_int)(1900 + tm->tm_year) + 694 ((u_int)tm->tm_hour << 8 | 695 (u_int)tm->tm_min)); 728 x = (u_int)tm [all...] |
/system/core/debuggerd/ |
H A D | backtrace.cpp | 49 struct tm tm; local 50 localtime_r(&t, &tm); 52 strftime(timestr, sizeof(timestr), "%F %T", &tm);
|
/system/core/libutils/ |
H A D | ProcessCallStack.cpp | 104 static String8 getTimeString(struct tm tm) { argument 107 strftime(timestr, sizeof(timestr), "%F %T", &tm); 128 mTimeUpdated = tm(); 151 struct tm tm; local 152 localtime_r(&t, &tm); 154 mTimeUpdated = tm;
|
/system/core/healthd/ |
H A D | healthd_mode_charger.cpp | 181 struct timespec tm; local 182 clock_gettime(CLOCK_MONOTONIC, &tm); 183 return tm.tv_sec * MSEC_PER_SEC + (tm.tv_nsec / NSEC_PER_MSEC);
|
Completed in 176 milliseconds