Searched defs:tm (Results 1 - 8 of 8) sorted by relevance

/system/extras/tests/icachetest/
H A Dicache_main.c11 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 Dalarm.c15 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 Dtouch.c18 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 Ddate.c27 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 Dnewfs_msdos.c253 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 Dbacktrace.cpp49 struct tm tm; local
50 localtime_r(&t, &tm);
52 strftime(timestr, sizeof(timestr), "%F %T", &tm);
/system/core/libutils/
H A DProcessCallStack.cpp104 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 Dhealthd_mode_charger.cpp181 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