/kernel/linux/linux-6.6/drivers/base/power/ |
H A D | trace.c | 32 * can just use the few bytes of actual time data, which means that 36 * (since the time between the hang and the boot might be more 91 static struct rtc_time time = { in set_magic_time() local 103 time.tm_year = (n % 100); in set_magic_time() 105 time.tm_mon = (n % 12); in set_magic_time() 107 time.tm_mday = (n % 28) + 1; in set_magic_time() 109 time.tm_hour = (n % 24); in set_magic_time() 111 time.tm_min = (n % 20) * 3; in set_magic_time() 113 mc146818_set_time(&time); in set_magic_time() 120 struct rtc_time time; in read_magic_time() local [all...] |
/kernel/linux/linux-5.10/arch/um/kernel/ |
H A D | time.c | 22 #include <linux/time-internal.h> 47 panic("time-travel: time goes backwards %lld -> %lld\n", in time_travel_set_time() 89 panic("time-travel external link is broken\n"); in time_travel_handle_message() 91 panic("invalid time-travel message - %d bytes\n", ret); in time_travel_handle_message() 95 WARN_ONCE(1, "time-travel: unexpected message %lld\n", in time_travel_handle_message() 101 time_travel_set_time(msg->time); in time_travel_handle_message() 105 time_travel_ext_free_until = msg->time; in time_travel_handle_message() 113 static u64 time_travel_ext_req(u32 op, u64 time) in time_travel_ext_req() argument 119 .time in time_travel_ext_req() 173 time_travel_ext_update_request(unsigned long long time) time_travel_ext_update_request() argument 195 time_travel_ext_request(unsigned long long time) time_travel_ext_request() argument 257 __time_travel_add_event(struct time_travel_event *e, unsigned long long time) __time_travel_add_event() argument 293 time_travel_add_event(struct time_travel_event *e, unsigned long long time) time_travel_add_event() argument [all...] |
/third_party/jerryscript/jerry-core/ecma/builtin-objects/ |
H A D | ecma-builtin-helpers.h | 146 ECMA_DATE_LOCAL /**< date vaule is in local time */ 153 ecma_number_t ecma_date_day (ecma_number_t time); 154 ecma_number_t ecma_date_time_within_day (ecma_number_t time); 155 ecma_number_t ecma_date_year_from_time (ecma_number_t time); 156 ecma_number_t ecma_date_month_from_time (ecma_number_t time); 157 ecma_number_t ecma_date_date_from_time (ecma_number_t time); 158 ecma_number_t ecma_date_week_day (ecma_number_t time); 159 ecma_number_t ecma_date_local_time_zone_adjustment (ecma_number_t time); 160 ecma_number_t ecma_date_utc (ecma_number_t time); 161 ecma_number_t ecma_date_hour_from_time (ecma_number_t time); [all...] |
/third_party/ltp/testcases/network/nfsv4/acl/ |
H A D | test_acl.py | 10 import time namespace 48 ''' Measuring time to add an ACE to a list regarding the number of ACE already in the list''' 55 t0=time.time() 60 t1=time.time() 73 t0=time.time() 78 t1=time.time() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/timers/ |
H A D | valid-adjtimex.c | 29 #include <time.h> 30 #include <sys/time.h> 205 tmx.time.tv_sec = offset / NSEC_PER_SEC; in set_offset() 206 tmx.time.tv_usec = offset % NSEC_PER_SEC; in set_offset() 208 if (offset < 0 && tmx.time.tv_usec) { in set_offset() 209 tmx.time.tv_sec -= 1; in set_offset() 210 tmx.time.tv_usec += NSEC_PER_SEC; in set_offset() 213 tmx.time.tv_sec = offset / USEC_PER_SEC; in set_offset() 214 tmx.time.tv_usec = offset % USEC_PER_SEC; in set_offset() 216 if (offset < 0 && tmx.time in set_offset() [all...] |
/kernel/linux/linux-6.6/drivers/firmware/efi/ |
H A D | efi-pstore.c | 62 u64 time; in efi_pstore_read_func() local 67 &record->type, &part, &cnt, &time, &data_type) == 5) { in efi_pstore_read_func() 68 record->id = generic_id(time, part, cnt); in efi_pstore_read_func() 71 record->time.tv_sec = time; in efi_pstore_read_func() 72 record->time.tv_nsec = 0; in efi_pstore_read_func() 79 &record->type, &part, &cnt, &time) == 4) { in efi_pstore_read_func() 80 record->id = generic_id(time, part, cnt); in efi_pstore_read_func() 83 record->time.tv_sec = time; in efi_pstore_read_func() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/timers/ |
H A D | valid-adjtimex.c | 29 #include <time.h> 30 #include <sys/time.h> 205 tmx.time.tv_sec = offset / NSEC_PER_SEC; in set_offset() 206 tmx.time.tv_usec = offset % NSEC_PER_SEC; in set_offset() 208 if (offset < 0 && tmx.time.tv_usec) { in set_offset() 209 tmx.time.tv_sec -= 1; in set_offset() 210 tmx.time.tv_usec += NSEC_PER_SEC; in set_offset() 213 tmx.time.tv_sec = offset / USEC_PER_SEC; in set_offset() 214 tmx.time.tv_usec = offset % USEC_PER_SEC; in set_offset() 216 if (offset < 0 && tmx.time in set_offset() [all...] |
/third_party/node/test/parallel/ |
H A D | test-console.js | 51 ['Label \'default\' already exists for console.time()'], 52 ['Label \'test\' already exists for console.time()'], 60 console.time('label'); 64 // on console.time(), console.countReset(), console.timeLog(), console.timeEnd() 69 console.time(); 70 console.time(); 76 assert.throws(() => console.time(Symbol('test')), 148 // Test console.time() and console.timeEnd() output 149 console.time('label'); 153 console.time('__proto_ [all...] |
/third_party/libinput/src/ |
H A D | evdev-mt-touchpad-edge-scroll.c | 92 uint64_t time) in tp_edge_scroll_set_timer() 104 time + DEFAULT_SCROLL_LOCK_TIMEOUT); in tp_edge_scroll_set_timer() 111 uint64_t time) in tp_edge_scroll_set_state() 124 tp_edge_scroll_set_timer(tp, t, time); in tp_edge_scroll_set_state() 138 uint64_t time) in tp_edge_scroll_handle_none() 146 time); in tp_edge_scroll_handle_none() 151 time); in tp_edge_scroll_handle_none() 170 uint64_t time) in tp_edge_scroll_handle_edge_new() 185 time); in tp_edge_scroll_handle_edge_new() 191 time); in tp_edge_scroll_handle_edge_new() 90 tp_edge_scroll_set_timer(struct tp_dispatch *tp, struct tp_touch *t, uint64_t time) tp_edge_scroll_set_timer() argument 108 tp_edge_scroll_set_state(struct tp_dispatch *tp, struct tp_touch *t, enum tp_edge_scroll_touch_state state, uint64_t time) tp_edge_scroll_set_state() argument 135 tp_edge_scroll_handle_none(struct tp_dispatch *tp, struct tp_touch *t, enum scroll_event event, uint64_t time) tp_edge_scroll_handle_none() argument 167 tp_edge_scroll_handle_edge_new(struct tp_dispatch *tp, struct tp_touch *t, enum scroll_event event, uint64_t time) tp_edge_scroll_handle_edge_new() argument 204 tp_edge_scroll_handle_edge(struct tp_dispatch *tp, struct tp_touch *t, enum scroll_event event, uint64_t time) tp_edge_scroll_handle_edge() argument 240 tp_edge_scroll_handle_area(struct tp_dispatch *tp, struct tp_touch *t, enum scroll_event event, uint64_t time) tp_edge_scroll_handle_area() argument 265 tp_edge_scroll_handle_event(struct tp_dispatch *tp, struct tp_touch *t, enum scroll_event event, uint64_t time) tp_edge_scroll_handle_event() argument 364 tp_edge_scroll_handle_state(struct tp_dispatch *tp, uint64_t time) tp_edge_scroll_handle_state() argument 419 tp_edge_scroll_post_events(struct tp_dispatch *tp, uint64_t time) tp_edge_scroll_post_events() argument 507 tp_edge_scroll_stop_events(struct tp_dispatch *tp, uint64_t time) tp_edge_scroll_stop_events() argument [all...] |
H A D | evdev-mt-touchpad-buttons.c | 131 uint64_t time) in tp_button_set_enter_timer() 134 time + DEFAULT_BUTTON_ENTER_TIMEOUT); in tp_button_set_enter_timer() 140 uint64_t time) in tp_button_set_leave_timer() 143 time + DEFAULT_BUTTON_LEAVE_TIMEOUT); in tp_button_set_leave_timer() 155 uint64_t time) in tp_button_set_state() 175 tp_button_set_enter_timer(tp, t, time); in tp_button_set_state() 178 tp_button_set_leave_timer(tp, t, time); in tp_button_set_state() 190 uint64_t time) in tp_button_none_handle_event() 196 tp_button_set_state(tp, t, BUTTON_STATE_BOTTOM, event, time); in tp_button_none_handle_event() 201 tp_button_set_state(tp, t, BUTTON_STATE_TOP_NEW, event, time); in tp_button_none_handle_event() 129 tp_button_set_enter_timer(struct tp_dispatch *tp, struct tp_touch *t, uint64_t time) tp_button_set_enter_timer() argument 138 tp_button_set_leave_timer(struct tp_dispatch *tp, struct tp_touch *t, uint64_t time) tp_button_set_leave_timer() argument 151 tp_button_set_state(struct tp_dispatch *tp, struct tp_touch *t, enum button_state new_state, enum button_event event, uint64_t time) tp_button_set_state() argument 187 tp_button_none_handle_event(struct tp_dispatch *tp, struct tp_touch *t, enum button_event event, uint64_t time) tp_button_none_handle_event() argument 217 tp_button_area_handle_event(struct tp_dispatch *tp, struct tp_touch *t, enum button_event event, uint64_t time) tp_button_area_handle_event() argument 272 tp_button_bottom_handle_event(struct tp_dispatch *tp, struct tp_touch *t, enum button_event event, uint64_t time) tp_button_bottom_handle_event() argument 313 tp_button_top_handle_event(struct tp_dispatch *tp, struct tp_touch *t, enum button_event event, uint64_t time) tp_button_top_handle_event() argument 348 tp_button_top_new_handle_event(struct tp_dispatch *tp, struct tp_touch *t, enum button_event event, uint64_t time) tp_button_top_new_handle_event() argument 387 tp_button_top_to_ignore_handle_event(struct tp_dispatch *tp, struct tp_touch *t, enum button_event event, uint64_t time) tp_button_top_to_ignore_handle_event() argument 427 tp_button_ignore_handle_event(struct tp_dispatch *tp, struct tp_touch *t, enum button_event event, uint64_t time) tp_button_ignore_handle_event() argument 455 tp_button_handle_event(struct tp_dispatch *tp, struct tp_touch *t, enum button_event event, uint64_t time) tp_button_handle_event() argument 532 tp_button_handle_state(struct tp_dispatch *tp, uint64_t time) tp_button_handle_state() argument 591 tp_process_button(struct tp_dispatch *tp, const struct input_event *e, uint64_t time) tp_process_button() argument 615 tp_release_all_buttons(struct tp_dispatch *tp, uint64_t time) tp_release_all_buttons() argument 1024 tp_post_physical_buttons(struct tp_dispatch *tp, uint64_t time) tp_post_physical_buttons() argument 1165 tp_notify_clickpadbutton(struct tp_dispatch *tp, uint64_t time, uint32_t button, uint32_t is_topbutton, enum libinput_button_state state) tp_notify_clickpadbutton() argument 1218 tp_post_clickpadbutton_buttons(struct tp_dispatch *tp, uint64_t time) tp_post_clickpadbutton_buttons() argument 1326 tp_post_button_events(struct tp_dispatch *tp, uint64_t time) tp_post_button_events() argument [all...] |
/kernel/linux/linux-6.6/drivers/rtc/ |
H A D | rtc-spear.c | 63 /* date reg equal to time reg, for debug only */ 192 * spear_rtc_read_time - set the time 194 * @tm: holds date and time 196 * This function read time and date. On success it will return 0 202 unsigned int time, date; in spear_rtc_read_time() local 208 time = readl(config->ioaddr + TIME_REG); in spear_rtc_read_time() 210 } while (time == readl(config->ioaddr + TIME_REG)); in spear_rtc_read_time() 211 tm->tm_sec = (time >> SECOND_SHIFT) & SECOND_MASK; in spear_rtc_read_time() 212 tm->tm_min = (time >> MINUTE_SHIFT) & MIN_MASK; in spear_rtc_read_time() 213 tm->tm_hour = (time >> HOUR_SHIF in spear_rtc_read_time() 233 unsigned int time, date; spear_rtc_set_time() local 259 unsigned int time, date; spear_rtc_read_alarm() local 289 unsigned int time, date; spear_rtc_set_alarm() local [all...] |
H A D | rtc-ds1305.c | 26 /* RTC date/time ... the main special cases are that we: 167 * Get/set of date and time is pretty normal. 170 static int ds1305_get_time(struct device *dev, struct rtc_time *time) in ds1305_get_time() argument 177 /* Use write-then-read to get all the date/time registers in ds1305_get_time() 188 time->tm_sec = bcd2bin(buf[DS1305_SEC]); in ds1305_get_time() 189 time->tm_min = bcd2bin(buf[DS1305_MIN]); in ds1305_get_time() 190 time->tm_hour = bcd2hour(buf[DS1305_HOUR]); in ds1305_get_time() 191 time->tm_wday = buf[DS1305_WDAY] - 1; in ds1305_get_time() 192 time->tm_mday = bcd2bin(buf[DS1305_MDAY]); in ds1305_get_time() 193 time in ds1305_get_time() 205 ds1305_set_time(struct device *dev, struct rtc_time *time) ds1305_set_time() argument [all...] |
H A D | rtc-ds1302.c | 37 static int ds1302_rtc_set_time(struct device *dev, struct rtc_time *time) in ds1302_rtc_set_time() argument 54 /* Write registers starting at the first time/date address. */ in ds1302_rtc_set_time() 58 *bp++ = bin2bcd(time->tm_sec); in ds1302_rtc_set_time() 59 *bp++ = bin2bcd(time->tm_min); in ds1302_rtc_set_time() 60 *bp++ = bin2bcd(time->tm_hour); in ds1302_rtc_set_time() 61 *bp++ = bin2bcd(time->tm_mday); in ds1302_rtc_set_time() 62 *bp++ = bin2bcd(time->tm_mon + 1); in ds1302_rtc_set_time() 63 *bp++ = time->tm_wday + 1; in ds1302_rtc_set_time() 64 *bp++ = bin2bcd(time->tm_year % 100); in ds1302_rtc_set_time() 72 static int ds1302_rtc_get_time(struct device *dev, struct rtc_time *time) in ds1302_rtc_get_time() argument [all...] |
/third_party/node/deps/v8/src/date/ |
H A D | dateparser-inl.h | 20 TimeComposer time; in Parse() local 24 // Accept ES5 ISO 8601 date-time-strings or legacy dates compatible in Parse() 42 // (following Safari, ISO actually demands local time). in Parse() 50 // An unsigned number followed by ':' is a time value, and is in Parse() 52 // zero as well. A number followed by '.' is also a time and must be in Parse() 57 // A word recognizable as a time-zone is recorded as such, as is in Parse() 64 // parsed as an ES5 date-time string - which means it will default in Parse() 65 // to UTC time-zone. That's unavoidable if following the ES5 in Parse() 72 DateToken next_unhandled_token = ParseES5DateTime(&scanner, &day, &time, &tz); in Parse() 86 if (!time in Parse() 237 ParseES5DateTime( DateStringTokenizer<Char>* scanner, DayComposer* day, TimeComposer* time, TimeZoneComposer* tz) ParseES5DateTime() argument [all...] |
/kernel/linux/linux-5.10/drivers/rtc/ |
H A D | rtc-ds1305.c | 26 /* RTC date/time ... the main special cases are that we: 167 * Get/set of date and time is pretty normal. 170 static int ds1305_get_time(struct device *dev, struct rtc_time *time) in ds1305_get_time() argument 177 /* Use write-then-read to get all the date/time registers in ds1305_get_time() 188 time->tm_sec = bcd2bin(buf[DS1305_SEC]); in ds1305_get_time() 189 time->tm_min = bcd2bin(buf[DS1305_MIN]); in ds1305_get_time() 190 time->tm_hour = bcd2hour(buf[DS1305_HOUR]); in ds1305_get_time() 191 time->tm_wday = buf[DS1305_WDAY] - 1; in ds1305_get_time() 192 time->tm_mday = bcd2bin(buf[DS1305_MDAY]); in ds1305_get_time() 193 time in ds1305_get_time() 205 ds1305_set_time(struct device *dev, struct rtc_time *time) ds1305_set_time() argument [all...] |
H A D | rtc-spear.c | 66 /* date reg equal to time reg, for debug only */ 195 * spear_rtc_read_time - set the time 197 * @tm: holds date and time 199 * This function read time and date. On success it will return 0 205 unsigned int time, date; in spear_rtc_read_time() local 210 time = readl(config->ioaddr + TIME_REG); in spear_rtc_read_time() 212 tm->tm_sec = (time >> SECOND_SHIFT) & SECOND_MASK; in spear_rtc_read_time() 213 tm->tm_min = (time >> MINUTE_SHIFT) & MIN_MASK; in spear_rtc_read_time() 214 tm->tm_hour = (time >> HOUR_SHIFT) & HOUR_MASK; in spear_rtc_read_time() 224 * spear_rtc_set_time - set the time 234 unsigned int time, date; spear_rtc_set_time() local 260 unsigned int time, date; spear_rtc_read_alarm() local 290 unsigned int time, date; spear_rtc_set_alarm() local [all...] |
H A D | rtc-ds1302.c | 37 static int ds1302_rtc_set_time(struct device *dev, struct rtc_time *time) in ds1302_rtc_set_time() argument 54 /* Write registers starting at the first time/date address. */ in ds1302_rtc_set_time() 58 *bp++ = bin2bcd(time->tm_sec); in ds1302_rtc_set_time() 59 *bp++ = bin2bcd(time->tm_min); in ds1302_rtc_set_time() 60 *bp++ = bin2bcd(time->tm_hour); in ds1302_rtc_set_time() 61 *bp++ = bin2bcd(time->tm_mday); in ds1302_rtc_set_time() 62 *bp++ = bin2bcd(time->tm_mon + 1); in ds1302_rtc_set_time() 63 *bp++ = time->tm_wday + 1; in ds1302_rtc_set_time() 64 *bp++ = bin2bcd(time->tm_year % 100); in ds1302_rtc_set_time() 72 static int ds1302_rtc_get_time(struct device *dev, struct rtc_time *time) in ds1302_rtc_get_time() argument [all...] |
/third_party/python/Lib/test/ |
H A D | test_strftime.py | 2 Unittest for time.strftime 9 import time namespace 36 self.gmt = time.gmtime(now) 37 now = time.localtime(now) 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] 46 else: self.tz = time.tzname[0] 67 now = time.time() [all...] |
H A D | test_strptime.py | 4 import time namespace 29 """Create time tuple based on current time.""" 30 self.time_tuple = time.localtime() 39 strftime_output = time.strftime(directive, self.time_tuple).lower() 65 strftime_output = time.strftime("%p", self.time_tuple).lower() 78 timezone = time.strftime("%Z", self.time_tuple).lower() 93 strftime_output = time.strftime("%c", magic_date) 94 self.assertEqual(time.strftime(self.LT_ins.LC_date_time, magic_date), 96 strftime_output = time [all...] |
/kernel/liteos_a/testsuites/unittest/process/lock/mutex/smoke/ |
H A D | pthread_mutex_test_008.cpp | 44 struct timespec time; in ThreadFuncTest3() local 52 time.tv_sec = timeVal.tv_sec + 15; // 15 in ThreadFuncTest3() 53 time.tv_nsec = timeVal.tv_usec + 0; in ThreadFuncTest3() 55 ret = pthread_mutex_timedlock(&g_muxLock001, &time); in ThreadFuncTest3() 70 struct timespec time; in ThreadFuncTest2() local 78 time.tv_sec = timeVal.tv_sec + 10; // 10 in ThreadFuncTest2() 79 time.tv_nsec = timeVal.tv_usec + 0; in ThreadFuncTest2() 81 ret = pthread_mutex_timedlock(&g_muxLock001, &time); in ThreadFuncTest2() 97 struct timespec time; in ThreadFuncTest1() local 105 time in ThreadFuncTest1() [all...] |
/third_party/python/Lib/ |
H A D | sched.py | 8 supposed to return the current time, one that is supposed to 9 implement a delay. You can implement real-time scheduling by 10 substituting time and sleep from built-in module time, or you can 11 implement simulated time by writing your own functions. This can 16 Events are specified by tuples (time, priority, action, argument, kwargs). 26 import time namespace 31 from time import monotonic as _time 35 Event = namedtuple('Event', 'time, priority, sequence, action, argument, kwargs') 36 Event.time [all...] |
/kernel/linux/linux-5.10/tools/testing/kunit/ |
H A D | kunit.py | 13 import time namespace 57 config_start = time.time() 59 config_end = time.time() 72 build_start = time.time() 77 build_end = time.time() 93 test_start = time [all...] |
/kernel/linux/linux-6.6/drivers/input/misc/ |
H A D | axp20x-pek.c | 49 unsigned int time; member 54 { .time = 128, .idx = 0 }, 55 { .time = 1000, .idx = 2 }, 56 { .time = 3000, .idx = 1 }, 57 { .time = 2000, .idx = 3 }, 61 { .time = 128, .idx = 0 }, 62 { .time = 1000, .idx = 1 }, 63 { .time = 2000, .idx = 2 }, 64 { .time = 3000, .idx = 3 }, 68 { .time 88 axp20x_show_attr(struct device *dev, const struct axp20x_time *time, unsigned int mask, char *buf) axp20x_show_attr() argument 130 axp20x_store_attr(struct device *dev, const struct axp20x_time *time, unsigned int mask, const char *buf, size_t count) axp20x_store_attr() argument [all...] |
/kernel/linux/linux-5.10/lib/ |
H A D | rbtree_test.c | 245 cycles_t time1, time2, time; in rbtree_test_init() local 267 time = time2 - time1; in rbtree_test_init() 269 time = div_u64(time, perf_loops); in rbtree_test_init() 271 (unsigned long long)time); in rbtree_test_init() 283 time = time2 - time1; in rbtree_test_init() 285 time = div_u64(time, perf_loops); in rbtree_test_init() 287 (unsigned long long)time); in rbtree_test_init() 300 time in rbtree_test_init() [all...] |
/kernel/linux/linux-6.6/lib/ |
H A D | rbtree_test.c | 245 cycles_t time1, time2, time; in rbtree_test_init() local 267 time = time2 - time1; in rbtree_test_init() 269 time = div_u64(time, perf_loops); in rbtree_test_init() 271 (unsigned long long)time); in rbtree_test_init() 283 time = time2 - time1; in rbtree_test_init() 285 time = div_u64(time, perf_loops); in rbtree_test_init() 287 (unsigned long long)time); in rbtree_test_init() 300 time in rbtree_test_init() [all...] |