/third_party/python/Lib/test/test_tomllib/ |
H A D | burntsushi.py | 18 "local time": "time-local", 36 elif isinstance(obj, datetime.time): 38 "type": "time-local", 73 elif norm_type == "time-local": 100 time, _, offset = rest.partition(sign) 102 time = rest 105 time = time.rstrip("0") if "." in time els [all...] |
/kernel/linux/linux-5.10/drivers/rtc/ |
H A D | rtc-ds1307.c | 30 * setting the date and time), Linux can ignore the non-clock features. 75 * basic RTC date and time functionality; be careful using them. 226 dev_warn_once(dev, "oscillator failed, set time!\n"); in ds1307_get_time() 231 /* read the RTC date and time registers all at once */ in ds1307_get_time() 244 dev_warn_once(dev, "oscillator failed, set time!\n"); in ds1307_get_time() 382 * these bits were cleared when preparing the date/time in ds1307_set_time() 436 * report alarm time (ALARM1); assume 24 hour and day-of-month modes, in ds1337_read_alarm() 439 t->time.tm_sec = bcd2bin(regs[0] & 0x7f); in ds1337_read_alarm() 440 t->time.tm_min = bcd2bin(regs[1] & 0x7f); in ds1337_read_alarm() 441 t->time in ds1337_read_alarm() [all...] |
/kernel/linux/linux-6.6/drivers/rtc/ |
H A D | rtc-ds1307.c | 31 * setting the date and time), Linux can ignore the non-clock features. 77 * basic RTC date and time functionality; be careful using them. 225 dev_warn_once(dev, "oscillator failed, set time!\n"); in ds1307_get_time() 230 /* read the RTC date and time registers all at once */ in ds1307_get_time() 243 dev_warn_once(dev, "oscillator failed, set time!\n"); in ds1307_get_time() 381 * these bits were cleared when preparing the date/time in ds1307_set_time() 432 * report alarm time (ALARM1); assume 24 hour and day-of-month modes, in ds1337_read_alarm() 435 t->time.tm_sec = bcd2bin(regs[0] & 0x7f); in ds1337_read_alarm() 436 t->time.tm_min = bcd2bin(regs[1] & 0x7f); in ds1337_read_alarm() 437 t->time in ds1337_read_alarm() [all...] |
H A D | rtc-bd70528.c | 34 struct bd70528_rtc_day time; member 75 r->time.hour &= ~(BD70528_MASK_RTC_HOUR_PM | BD70528_MASK_RTC_HOUR_24H); in tm2rtc() 77 tmday2rtc(t, &r->time); in tm2rtc() 79 * We do always set time in 24H mode. in tm2rtc() 81 r->time.hour |= BD70528_MASK_RTC_HOUR_24H; in tm2rtc() 90 t->tm_sec = bcd2bin(r->time.sec & BD70528_MASK_RTC_SEC); in rtc2tm() 91 t->tm_min = bcd2bin(r->time.min & BD70528_MASK_RTC_MINUTE); in rtc2tm() 92 t->tm_hour = bcd2bin(r->time.hour & BD70528_MASK_RTC_HOUR); in rtc2tm() 97 if (!(r->time.hour & BD70528_MASK_RTC_HOUR_24H)) { in rtc2tm() 99 if (r->time in rtc2tm() [all...] |
H A D | rtc-s35390a.c | 114 * this information in the hardware to know later that the time isn't in s35390a_init() 282 "mon=%d, year=%d, wday=%d\n", __func__, alm->time.tm_sec, in s35390a_rtc_set_alarm() 283 alm->time.tm_min, alm->time.tm_hour, alm->time.tm_mday, in s35390a_rtc_set_alarm() 284 alm->time.tm_mon, alm->time.tm_year, alm->time.tm_wday); in s35390a_rtc_set_alarm() 306 if (alm->time.tm_wday != -1) in s35390a_rtc_set_alarm() 307 buf[S35390A_ALRM_BYTE_WDAY] = bin2bcd(alm->time in s35390a_rtc_set_alarm() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/timers/ |
H A D | leap-a-day.c | 18 * time by 24 hours every ~16 seconds, it may cause application 44 #include <time.h> 45 #include <sys/time.h> 138 if (tx.time.tv_sec < next_leap) { in sigalarm() 142 tx.time.tv_sec, in sigalarm() 143 tx.time.tv_usec, in sigalarm() 151 tx.time.tv_sec, in sigalarm() 152 tx.time.tv_usec, in sigalarm() 192 printf("Only setting leap-flag, not changing time. It could take up to a day for leap to trigger.\n"); in main() 204 printf(" (default sets time t in main() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/timers/ |
H A D | leap-a-day.c | 18 * time by 24 hours every ~16 seconds, it may cause application 44 #include <time.h> 45 #include <sys/time.h> 138 if (tx.time.tv_sec < next_leap) { in sigalarm() 142 tx.time.tv_sec, in sigalarm() 143 tx.time.tv_usec, in sigalarm() 151 tx.time.tv_sec, in sigalarm() 152 tx.time.tv_usec, in sigalarm() 192 printf("Only setting leap-flag, not changing time. It could take up to a day for leap to trigger.\n"); in main() 204 printf(" (default sets time t in main() [all...] |
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
H A D | mpic_timer.h | 17 #include <linux/time.h> 28 time64_t time); 31 void mpic_get_remain_time(struct mpic_timer *handle, time64_t *time); 35 time64_t time) { return NULL; } in mpic_request_timer() 38 void mpic_get_remain_time(struct mpic_timer *handle, time64_t *time) { } in mpic_get_remain_time() argument 34 mpic_request_timer(irq_handler_t fn, void *dev, time64_t time) mpic_request_timer() argument
|
/kernel/linux/linux-6.6/arch/powerpc/include/asm/ |
H A D | mpic_timer.h | 17 #include <linux/time.h> 28 time64_t time); 31 void mpic_get_remain_time(struct mpic_timer *handle, time64_t *time); 35 time64_t time) { return NULL; } in mpic_request_timer() 38 void mpic_get_remain_time(struct mpic_timer *handle, time64_t *time) { } in mpic_get_remain_time() argument 34 mpic_request_timer(irq_handler_t fn, void *dev, time64_t time) mpic_request_timer() argument
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvif/ |
H A D | timer.c | 28 u64 time = nvif_device_time(wait->device); in nvif_timer_wait_test() local 31 wait->time0 = time; in nvif_timer_wait_test() 32 wait->time1 = time; in nvif_timer_wait_test() 35 if (wait->time1 == time) { in nvif_timer_wait_test() 39 wait->time1 = time; in nvif_timer_wait_test()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvif/ |
H A D | timer.c | 28 u64 time = nvif_device_time(wait->device); in nvif_timer_wait_test() local 31 wait->time0 = time; in nvif_timer_wait_test() 32 wait->time1 = time; in nvif_timer_wait_test() 35 if (wait->time1 == time) { in nvif_timer_wait_test() 39 wait->time1 = time; in nvif_timer_wait_test()
|
/kernel/liteos_a/kernel/base/include/ |
H A D | los_sys_pri.h | 104 #define OS_US_TO_CYCLE(time, freq) ((((time) / OS_SYS_US_PER_SECOND) * (freq)) + \ 105 (((time) % OS_SYS_US_PER_SECOND) * (freq) / OS_SYS_US_PER_SECOND)) 107 #define OS_SYS_US_TO_CYCLE(time) OS_US_TO_CYCLE((time), OS_SYS_CLOCK)
|
/third_party/node/deps/v8/tools/testrunner/testproc/ |
H A D | timeout.py | 5 import time namespace 14 self._start = time.time() 27 if time.time() - self._start > self._duration_sec:
|
/third_party/musl/compat/time32/ |
H A D | ftime32.c | 7 int32_t time; member 16 if (tb.time < INT32_MIN || tb.time > INT32_MAX) { in __ftime32() 20 tp->time = tb.time; in __ftime32()
|
/third_party/python/Tools/peg_generator/scripts/ |
H A D | ast_timings.py | 3 import time namespace 9 t0 = time.time() 19 t1 = time.time()
|
/third_party/vk-gl-cts/external/amber/src/samples/ |
H A D | timestamp.cc | 30 #include <time.h> 56 struct timespec time; in SampleGetTimestampNs() local 57 if (clock_gettime(CLOCK_MONOTONIC, &time)) { in SampleGetTimestampNs() 60 timestamp = static_cast<uint64_t>((time.tv_sec * 1000000000) + time.tv_nsec); in SampleGetTimestampNs()
|
/foundation/barrierfree/accessibility/services/test/mock/ |
H A D | mock_accessible_ability_manager_service_stub.cpp | 222 RetError MockAccessibleAbilityManagerServiceStub::SetMouseAutoClick(const int32_t time) in SetMouseAutoClick() argument 224 mouseAutoClick_ = time; in SetMouseAutoClick() 276 RetError MockAccessibleAbilityManagerServiceStub::SetContentTimeout(const uint32_t time) in SetContentTimeout() argument 278 contentTimeout_ = time; in SetContentTimeout() 308 RetError MockAccessibleAbilityManagerServiceStub::SetClickResponseTime(const uint32_t time) in SetClickResponseTime() argument 310 clickResponseTime_ = time; in SetClickResponseTime() 320 RetError MockAccessibleAbilityManagerServiceStub::SetIgnoreRepeatClickTime(const uint32_t time) in SetIgnoreRepeatClickTime() argument 322 ignoreRepeatClickTime_ = time; in SetIgnoreRepeatClickTime() 344 RetError MockAccessibleAbilityManagerServiceStub::GetMouseAutoClick(int32_t &time) in GetMouseAutoClick() argument 346 time in GetMouseAutoClick() 416 GetClickResponseTime(uint32_t &time) GetClickResponseTime() argument 428 GetIgnoreRepeatClickTime(uint32_t &time) GetIgnoreRepeatClickTime() argument [all...] |
/foundation/multimodalinput/input/service/touch_event_normalize/src/ |
H A D | tablet_tool_tranform_processor.cpp | 159 uint64_t time = libinput_event_tablet_tool_get_time_usec(event); in OnTipDown() local 160 pointerEvent_->SetActionStartTime(time); in OnTipDown() 162 pointerEvent_->SetActionTime(time); in OnTipDown() 171 item.SetDownTime(time); in OnTipDown() 195 uint64_t time = libinput_event_tablet_tool_get_time_usec(tabletEvent); in OnTipMotion() local 196 pointerEvent_->SetActionTime(time); in OnTipMotion() 213 pointerEvent_->SetActionStartTime(time); in OnTipMotion() 220 item.SetDownTime(time); in OnTipMotion() 239 uint64_t time = libinput_event_tablet_tool_get_time_usec(event); in OnTipUp() local 240 pointerEvent_->SetActionTime(time); in OnTipUp() 259 uint64_t time = libinput_event_tablet_tool_get_time_usec(tabletEvent); OnTipProximity() local [all...] |
/kernel/linux/linux-5.10/drivers/power/supply/ |
H A D | apm_power.c | 196 int time; in calculate_time() local 198 time = do_calculate_time(status, SOURCE_ENERGY); in calculate_time() 199 if (time != -1) in calculate_time() 200 return time; in calculate_time() 202 time = do_calculate_time(status, SOURCE_CHARGE); in calculate_time() 203 if (time != -1) in calculate_time() 204 return time; in calculate_time() 206 time = do_calculate_time(status, SOURCE_VOLTAGE); in calculate_time() 207 if (time != -1) in calculate_time() 208 return time; in calculate_time() [all...] |
/kernel/linux/linux-6.6/drivers/power/supply/ |
H A D | apm_power.c | 196 int time; in calculate_time() local 198 time = do_calculate_time(status, SOURCE_ENERGY); in calculate_time() 199 if (time != -1) in calculate_time() 200 return time; in calculate_time() 202 time = do_calculate_time(status, SOURCE_CHARGE); in calculate_time() 203 if (time != -1) in calculate_time() 204 return time; in calculate_time() 206 time = do_calculate_time(status, SOURCE_VOLTAGE); in calculate_time() 207 if (time != -1) in calculate_time() 208 return time; in calculate_time() [all...] |
/third_party/python/Lib/test/test_email/ |
H A D | test_utils.py | 4 import time namespace 74 test.support.patch(self, time, 'daylight', True) 79 test.support.patch(self, time, 'daylight', False) 84 test.support.patch(self, time, 'daylight', True) 91 test.support.patch(self, time, 'daylight', False) 99 test.support.patch(self, time, 'daylight', True) 107 test.support.patch(self, time, 'daylight', False) 115 test.support.patch(self, time, 'daylight', True) 124 test.support.patch(self, time, 'daylight', False) 132 test.support.patch(self, time, 'dayligh [all...] |
/kernel/liteos_a/syscall/ |
H A D | misc_syscall.c | 188 static void ConvertClocks(struct timeval *time, clock_t clk) in ConvertClocks() argument 190 time->tv_usec = (clk % CLOCKS_PER_SEC) * USEC_PER_SEC / CLOCKS_PER_SEC; in ConvertClocks() 191 time->tv_sec = (clk) / CLOCKS_PER_SEC; in ConvertClocks() 197 struct tms time; in SysGetrusage() local 206 if (times(&time) == -1) { in SysGetrusage() 212 usec = time.tms_utime; in SysGetrusage() 213 sec = time.tms_stime; in SysGetrusage() 217 usec = time.tms_cutime; in SysGetrusage() 218 sec = time.tms_cstime; in SysGetrusage()
|
/third_party/libsnd/programs/ |
H A D | sndfile-metadata-set.c | 40 #include <time.h> 60 char date [128], time [128] ; in main() local 73 /* Get the time in case we need it later. */ in main() 102 HANDLE_BEXT_ARG ("--bext-orig-time", origination_time) ; in main() 109 HANDLE_BEXT_ARG ("--bext-time-ref", time_ref) ; in main() 128 if (strcmp (argv [k], "--bext-auto-time-date") == 0) in main() 129 { snprintf (time, sizeof (time), "%02d:%02d:%02d", timedata.tm_hour, timedata.tm_min, timedata.tm_sec) ; in main() 130 info.origination_time = time ; in main() 137 if (strcmp (argv [k], "--bext-auto-time") in main() [all...] |
/foundation/arkui/ace_engine/frameworks/core/gestures/test/unittest/ |
H A D | gestures_test.cpp | 379 .x = LOCATION_X, .y = LOCATION_Y, .type = TouchType::DOWN, .time = std::chrono::high_resolution_clock::now() in HWTEST_F() 415 .x = LOCATION_X, .y = LOCATION_Y, .type = TouchType::UP, .time = std::chrono::high_resolution_clock::now() in HWTEST_F() 452 .x = LOCATION_X, .y = LOCATION_Y, .type = TouchType::CANCEL, .time = std::chrono::high_resolution_clock::now() in HWTEST_F() 488 .x = LOCATION_X, .y = LOCATION_Y, .type = TouchType::MOVE, .time = std::chrono::high_resolution_clock::now() in HWTEST_F() 522 .x = LOCATION_X, .y = LOCATION_Y, .type = TouchType::MOVE, .time = std::chrono::high_resolution_clock::now() in HWTEST_F() 534 .x = LOCATION_X, .y = 2 * LOCATION_Y, .type = TouchType::MOVE, .time = std::chrono::high_resolution_clock::now() in HWTEST_F() 542 const std::chrono::duration<double> duration = pointSecond.time - pointFirst.time; in HWTEST_F() 568 .x = LOCATION_X, .y = LOCATION_Y, .type = TouchType::MOVE, .time = std::chrono::high_resolution_clock::now() in HWTEST_F() 580 .x = 2 * LOCATION_X, .y = LOCATION_Y, .type = TouchType::MOVE, .time in HWTEST_F() [all...] |
/foundation/ability/ability_runtime/test/unittest/restart_app_manager_test/ |
H A D | restart_app_manager_test.cpp | 53 time_t time = 0; in HWTEST_F() local 54 instance.restartAppHistory_[1] = time; in HWTEST_F() 55 auto res = instance.IsRestartAppFrequent(1, time); in HWTEST_F() 68 time_t time = 20; in HWTEST_F() local 69 auto res = instance.IsRestartAppFrequent(1, time); in HWTEST_F()
|