Home
last modified time | relevance | path

Searched refs:time (Results 276 - 300 of 7805) sorted by relevance

1...<<11121314151617181920>>...313

/third_party/musl/libc-test/src/functionalext/supplement/termios/
H A Dtcdrain.c22 #include <time.h>
65 time(&T); in tcdrain_0100()
72 time(&T); in tcdrain_0100()
77 time(&T); in tcdrain_0100()
80 time(&T); in tcdrain_0100()
/third_party/libinput/src/
H A Devdev-tablet-pad.c104 uint64_t time) in pad_process_absolute()
254 uint64_t time) in pad_check_notify_axes()
274 time, in pad_check_notify_axes()
288 time, in pad_check_notify_axes()
302 time, in pad_check_notify_axes()
316 time, in pad_check_notify_axes()
331 uint64_t time) in pad_process_key()
362 uint64_t time, in pad_notify_button_mask()
396 time, in pad_notify_button_mask()
404 time, in pad_notify_button_mask()
101 pad_process_absolute(struct pad_dispatch *pad, struct evdev_device *device, struct input_event *e, uint64_t time) pad_process_absolute() argument
252 pad_check_notify_axes(struct pad_dispatch *pad, struct evdev_device *device, uint64_t time) pad_check_notify_axes() argument
328 pad_process_key(struct pad_dispatch *pad, struct evdev_device *device, struct input_event *e, uint64_t time) pad_process_key() argument
360 pad_notify_button_mask(struct pad_dispatch *pad, struct evdev_device *device, uint64_t time, const struct button_state *buttons, enum libinput_button_state state) pad_notify_button_mask() argument
415 pad_notify_buttons(struct pad_dispatch *pad, struct evdev_device *device, uint64_t time, enum libinput_button_state state) pad_notify_buttons() argument
445 pad_flush(struct pad_dispatch *pad, struct evdev_device *device, uint64_t time) pad_flush() argument
479 pad_process(struct evdev_dispatch *dispatch, struct evdev_device *device, struct input_event *e, uint64_t time) pad_process() argument
[all...]
H A Devdev-tablet.c210 uint64_t time) in tablet_process_absolute()
488 uint64_t time) in tablet_tool_process_delta()
522 time); in tablet_tool_process_delta()
708 uint64_t time) in tablet_check_notify_axes()
753 axes.delta = tablet_tool_process_delta(tablet, tool, device, &axes, time); in tablet_check_notify_axes()
818 uint64_t time) in tablet_process_key()
866 uint64_t time) in tablet_process_relative()
896 uint64_t time) in tablet_process_misc()
1201 uint64_t time, in tablet_notify_button_mask()
1221 time, in tablet_notify_button_mask()
207 tablet_process_absolute(struct tablet_dispatch *tablet, struct evdev_device *device, struct input_event *e, uint64_t time) tablet_process_absolute() argument
484 tablet_tool_process_delta(struct tablet_dispatch *tablet, struct libinput_tablet_tool *tool, const struct evdev_device *device, struct tablet_axes *axes, uint64_t time) tablet_tool_process_delta() argument
704 tablet_check_notify_axes(struct tablet_dispatch *tablet, struct evdev_device *device, struct libinput_tablet_tool *tool, struct tablet_axes *axes_out, uint64_t time) tablet_check_notify_axes() argument
815 tablet_process_key(struct tablet_dispatch *tablet, struct evdev_device *device, struct input_event *e, uint64_t time) tablet_process_key() argument
863 tablet_process_relative(struct tablet_dispatch *tablet, struct evdev_device *device, struct input_event *e, uint64_t time) tablet_process_relative() argument
893 tablet_process_misc(struct tablet_dispatch *tablet, struct evdev_device *device, struct input_event *e, uint64_t time) tablet_process_misc() argument
1199 tablet_notify_button_mask(struct tablet_dispatch *tablet, struct evdev_device *device, uint64_t time, struct libinput_tablet_tool *tool, const struct button_state *buttons, enum libinput_button_state state) tablet_notify_button_mask() argument
1231 tablet_notify_buttons(struct tablet_dispatch *tablet, struct evdev_device *device, uint64_t time, struct libinput_tablet_tool *tool, enum libinput_button_state state) tablet_notify_buttons() argument
1587 tablet_update_touch_device_rect(struct tablet_dispatch *tablet, const struct tablet_axes *axes, uint64_t time) tablet_update_touch_device_rect() argument
1609 tablet_send_proximity_in(struct tablet_dispatch *tablet, struct libinput_tablet_tool *tool, struct evdev_device *device, struct tablet_axes *axes, uint64_t time) tablet_send_proximity_in() argument
1635 tablet_send_proximity_out(struct tablet_dispatch *tablet, struct libinput_tablet_tool *tool, struct evdev_device *device, struct tablet_axes *axes, uint64_t time) tablet_send_proximity_out() argument
1662 tablet_send_tip(struct tablet_dispatch *tablet, struct libinput_tablet_tool *tool, struct evdev_device *device, struct tablet_axes *axes, uint64_t time) tablet_send_tip() argument
1708 tablet_send_axes(struct tablet_dispatch *tablet, struct libinput_tablet_tool *tool, struct evdev_device *device, struct tablet_axes *axes, uint64_t time) tablet_send_axes() argument
1738 tablet_send_buttons(struct tablet_dispatch *tablet, struct libinput_tablet_tool *tool, struct evdev_device *device, uint64_t time) tablet_send_buttons() argument
1763 tablet_send_events(struct tablet_dispatch *tablet, struct libinput_tablet_tool *tool, struct evdev_device *device, uint64_t time) tablet_send_events() argument
1824 tablet_proximity_out_quirk_set_timer(struct tablet_dispatch *tablet, uint64_t time) tablet_proximity_out_quirk_set_timer() argument
1833 tablet_update_tool_state(struct tablet_dispatch *tablet, struct evdev_device *device, uint64_t time) tablet_update_tool_state() argument
1958 tablet_flush(struct tablet_dispatch *tablet, struct evdev_device *device, uint64_t time) tablet_flush() argument
2007 tablet_set_touch_device_enabled(struct tablet_dispatch *tablet, enum evdev_arbitration_state which, const struct phys_rect *rect, uint64_t time) tablet_set_touch_device_enabled() argument
2030 tablet_toggle_touch_device(struct tablet_dispatch *tablet, struct evdev_device *tablet_device, uint64_t time) tablet_toggle_touch_device() argument
2126 tablet_process(struct evdev_dispatch *dispatch, struct evdev_device *device, struct input_event *e, uint64_t time) tablet_process() argument
[all...]
/third_party/mbedtls/include/mbedtls/
H A Dplatform_time.h4 * \brief Mbed TLS Platform time abstraction
26 #include <time.h>
39 * \brief Get time in milliseconds.
41 * \return Monotonically-increasing current time in milliseconds.
46 * \warning This function returns a monotonically-increasing time value from a
47 * start time that will differ from platform to platform, and possibly
54 * The function pointers for time
57 extern mbedtls_time_t (*mbedtls_time)(mbedtls_time_t *time);
60 * \brief Set your own time function pointer
62 * \param time_func the time functio
[all...]
/third_party/rust/crates/rustix/examples/
H A Dtime.rs5 #[cfg(feature = "time")]
8 "Real time: {:?}", in main()
9 rustix::time::clock_gettime(rustix::time::ClockId::Realtime) in main()
12 "Monotonic time: {:?}", in main()
13 rustix::time::clock_gettime(rustix::time::ClockId::Monotonic) in main()
17 #[cfg(any(windows, not(feature = "time")))]
/kernel/linux/linux-5.10/drivers/rtc/
H A Drtc-pl031.c53 /* Common bit definations for ST v2 for reading/writing time */
178 unsigned long time; in pl031_stv2_set_time() local
183 ret = pl031_stv2_tm_to_time(dev, tm, &time, &bcd_year); in pl031_stv2_set_time()
186 writel(time, ldata->base + RTC_LR); in pl031_stv2_set_time()
198 readl(ldata->base + RTC_YMR), &alarm->time); in pl031_stv2_read_alarm()
209 unsigned long time; in pl031_stv2_set_alarm() local
213 ret = pl031_stv2_tm_to_time(dev, &alarm->time, in pl031_stv2_set_alarm()
214 &time, &bcd_year); in pl031_stv2_set_alarm()
217 writel(time, ldata->base + RTC_MR); in pl031_stv2_set_alarm()
265 rtc_time64_to_tm(readl(ldata->base + RTC_MR), &alarm->time); in pl031_read_alarm()
300 unsigned long time, data; pl031_probe() local
[all...]
H A Drtc-ab3100.c78 time64_t time; in ab3100_rtc_read_time() local
94 /* Read out time registers */ in ab3100_rtc_read_time()
104 time = hw_counter / (u64) (AB3100_RTC_CLOCK_RATE * 2); in ab3100_rtc_read_time()
107 rtc_time64_to_tm(time, tm); in ab3100_rtc_read_time()
114 time64_t time; in ab3100_rtc_read_alarm() local
138 time = hw_counter / (u64) (AB3100_RTC_CLOCK_RATE * 2); in ab3100_rtc_read_alarm()
140 rtc_time64_to_tm(time, &alarm->time); in ab3100_rtc_read_alarm()
142 return rtc_valid_tm(&alarm->time); in ab3100_rtc_read_alarm()
154 secs = rtc_tm_to_time64(&alarm->time); in ab3100_rtc_set_alarm()
[all...]
H A Drtc-ds1286.c164 * Once the read clears, read the RTC time (again via ioctl). Easy. in ds1286_read_time()
272 alm->time.tm_min = ds1286_rtc_read(priv, RTC_MINUTES_ALARM) & 0x7f; in ds1286_read_alarm()
273 alm->time.tm_hour = ds1286_rtc_read(priv, RTC_HOURS_ALARM) & 0x1f; in ds1286_read_alarm()
274 alm->time.tm_wday = ds1286_rtc_read(priv, RTC_DAY_ALARM) & 0x07; in ds1286_read_alarm()
278 alm->time.tm_min = bcd2bin(alm->time.tm_min); in ds1286_read_alarm()
279 alm->time.tm_hour = bcd2bin(alm->time.tm_hour); in ds1286_read_alarm()
280 alm->time.tm_sec = 0; in ds1286_read_alarm()
289 hrs = alm->time in ds1286_set_alarm()
[all...]
H A Drtc-rc5t583.c26 /* Total number of RTC registers needed to set time*/
51 * Gets current rc5t583 RTC time and date parameters.
53 * The RTC's time/alarm representation is not what gmtime(3) requires
68 dev_err(dev, "RTC read time failed with err:%d\n", ret); in rc5t583_rtc_read_time()
100 dev_err(dev, "RTC set time failed with error %d\n", ret); in rc5t583_rtc_set_time()
121 alm->time.tm_sec = 0; in rc5t583_rtc_read_alarm()
122 alm->time.tm_min = bcd2bin(alarm_data[0]); in rc5t583_rtc_read_alarm()
123 alm->time.tm_hour = bcd2bin(alarm_data[1]); in rc5t583_rtc_read_alarm()
124 alm->time.tm_mday = bcd2bin(alarm_data[2]); in rc5t583_rtc_read_alarm()
125 alm->time in rc5t583_rtc_read_alarm()
[all...]
/kernel/linux/linux-6.6/drivers/rtc/
H A Drtc-pl031.c53 /* Common bit definations for ST v2 for reading/writing time */
178 unsigned long time; in pl031_stv2_set_time() local
183 ret = pl031_stv2_tm_to_time(dev, tm, &time, &bcd_year); in pl031_stv2_set_time()
186 writel(time, ldata->base + RTC_LR); in pl031_stv2_set_time()
198 readl(ldata->base + RTC_YMR), &alarm->time); in pl031_stv2_read_alarm()
209 unsigned long time; in pl031_stv2_set_alarm() local
213 ret = pl031_stv2_tm_to_time(dev, &alarm->time, in pl031_stv2_set_alarm()
214 &time, &bcd_year); in pl031_stv2_set_alarm()
217 writel(time, ldata->base + RTC_MR); in pl031_stv2_set_alarm()
265 rtc_time64_to_tm(readl(ldata->base + RTC_MR), &alarm->time); in pl031_read_alarm()
300 unsigned long time, data; pl031_probe() local
[all...]
H A Drtc-ds1286.c164 * Once the read clears, read the RTC time (again via ioctl). Easy. in ds1286_read_time()
272 alm->time.tm_min = ds1286_rtc_read(priv, RTC_MINUTES_ALARM) & 0x7f; in ds1286_read_alarm()
273 alm->time.tm_hour = ds1286_rtc_read(priv, RTC_HOURS_ALARM) & 0x1f; in ds1286_read_alarm()
274 alm->time.tm_wday = ds1286_rtc_read(priv, RTC_DAY_ALARM) & 0x07; in ds1286_read_alarm()
278 alm->time.tm_min = bcd2bin(alm->time.tm_min); in ds1286_read_alarm()
279 alm->time.tm_hour = bcd2bin(alm->time.tm_hour); in ds1286_read_alarm()
280 alm->time.tm_sec = 0; in ds1286_read_alarm()
289 hrs = alm->time in ds1286_set_alarm()
[all...]
H A Drtc-rc5t583.c26 /* Total number of RTC registers needed to set time*/
51 * Gets current rc5t583 RTC time and date parameters.
53 * The RTC's time/alarm representation is not what gmtime(3) requires
68 dev_err(dev, "RTC read time failed with err:%d\n", ret); in rc5t583_rtc_read_time()
100 dev_err(dev, "RTC set time failed with error %d\n", ret); in rc5t583_rtc_set_time()
121 alm->time.tm_sec = 0; in rc5t583_rtc_read_alarm()
122 alm->time.tm_min = bcd2bin(alarm_data[0]); in rc5t583_rtc_read_alarm()
123 alm->time.tm_hour = bcd2bin(alarm_data[1]); in rc5t583_rtc_read_alarm()
124 alm->time.tm_mday = bcd2bin(alarm_data[2]); in rc5t583_rtc_read_alarm()
125 alm->time in rc5t583_rtc_read_alarm()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/alsa/
H A Dtest-pcmtest-driver.c29 int time; member
149 self->params.time = 4; in FIXTURE_SETUP()
175 samples = calloc(self->params.sec_buf_len * self->params.time, 1); in TEST_F()
184 params->rate * params->channels * params->time); in TEST_F()
186 for (i = 0; i < self->params.sec_buf_len * params->time; i++) { in TEST_F()
192 write_res = snd_pcm_writei(handle, samples, params->rate * params->time); in TEST_F()
214 samples = calloc(self->params.sec_buf_len * self->params.time, 1); in TEST_F()
223 params->rate * params->channels * params->time); in TEST_F()
224 read_res = snd_pcm_readi(handle, samples, params->rate * params->time); in TEST_F()
228 for (i = 0; i < self->params.sec_buf_len * self->params.time; in TEST_F()
[all...]
/third_party/benchmark/src/
H A Dcomplexity.cc73 // Find the coefficient for the high-order term in the running time, by
77 // - time : Vector containing the times for the benchmark tests.
84 const std::vector<double>& time,
94 sigma_time += time[i];
95 sigma_time_gn += time[i] * gn_i;
108 rms += pow((time[i] - fit), 2);
118 // Find the coefficient for the high-order term in the running time, by
121 // - time : Vector containing the times for the benchmark tests.
126 const std::vector<double>& time, const BigO complexity) {
127 BM_CHECK_EQ(n.size(), time
[all...]
/third_party/ltp/testcases/misc/math/fptests/
H A Dfptest02.c45 #include <time.h>
71 double time; member
87 double lsttime; /* time used for editing */
133 dtw = 1. / nproc; /* mean process work time */ in init()
134 dtwsig = dtw * alpha; /* std deviation of work time */ in init()
135 gaussinit(dtw, dtwsig, time(0)); in init()
183 eventtab[i].time = t; in addevent()
207 && (eventtab[i].time < mintime)) { in nextevent()
209 mintime = eventtab[i].time; in nextevent()
216 rtrevent.time in nextevent()
[all...]
/third_party/skia/third_party/externals/dawn/src/dawn_node/tools/src/cmd/run-cts/
H A Dmain.go39 "time"
46 testTimeout = time.Minute
298 BuildTimestamp time.Time
333 func (r *runner) scanSourceTimestamps(verbose bool) (time.Time, error) {
335 start := time.Now()
338 fmt.Println("completed in", time.Since(start))
344 mostRecentChange := time.Time{}
355 return time.Time{}, err
361 // the TypeScript files down to JavaScript. Doing this once ahead of time can be
365 start := time
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
H A DRuleBasedTimeZone.java19 * custom historic time transition rules.
40 * @param id The time zone ID.
41 * @param initialRule The initial time zone rule.
51 * Adds the <code>TimeZoneRule</code> which represents time transitions.
87 // accessed next time. in addTransitionRule()
103 long time = Grego.fieldsToDay(year, month, day) * Grego.MILLIS_PER_DAY + milliseconds; in getOffset()
105 getOffset(time, true, LOCAL_DST, LOCAL_STD, offsets); in getOffset()
115 public void getOffset(long time, boolean local, int[] offsets) { in getOffset() argument
116 getOffset(time, local, LOCAL_FORMER, LOCAL_LATTER, offsets); in getOffset()
139 // as of current time in getRawOffset()
616 getOffset(long time, boolean local, int NonExistingTimeOpt, int DuplicatedTimeOpt, int[] offsets) getOffset() argument
659 findRuleInFinal(long time, boolean local, int NonExistingTimeOpt, int DuplicatedTimeOpt) findRuleInFinal() argument
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
H A DRuleBasedTimeZone.java20 * custom historic time transition rules.
41 * @param id The time zone ID.
42 * @param initialRule The initial time zone rule.
50 * Adds the <code>TimeZoneRule</code> which represents time transitions.
84 // accessed next time. in addTransitionRule()
98 long time = Grego.fieldsToDay(year, month, day) * Grego.MILLIS_PER_DAY + milliseconds; in getOffset()
100 getOffset(time, true, LOCAL_DST, LOCAL_STD, offsets); in getOffset()
108 public void getOffset(long time, boolean local, int[] offsets) { in getOffset() argument
109 getOffset(time, local, LOCAL_FORMER, LOCAL_LATTER, offsets); in getOffset()
130 // as of current time in getRawOffset()
591 getOffset(long time, boolean local, int NonExistingTimeOpt, int DuplicatedTimeOpt, int[] offsets) getOffset() argument
634 findRuleInFinal(long time, boolean local, int NonExistingTimeOpt, int DuplicatedTimeOpt) findRuleInFinal() argument
[all...]
/third_party/python/Lib/test/test_asyncio/
H A Dtest_waitfor.py3 import time namespace
17 """ Task will run for this defined time, ignoring cancel requests """
24 exitat = time.monotonic() + self.TASK_TIMEOUT
27 tosleep = exitat - time.monotonic()
68 t0 = loop.time()
70 t1 = loop.time()
86 t0 = loop.time()
88 t1 = loop.time()
115 t0 = loop.time()
117 t1 = loop.time()
[all...]
/kernel/linux/linux-5.10/tools/power/acpi/os_specific/service_layers/
H A Dosunixxf.c24 #include <sys/time.h>
721 struct timespec time; in acpi_os_wait_semaphore() local
782 * The interface to sem_timedwait is an absolute time, so we need to in acpi_os_wait_semaphore()
783 * get the current time, then add in the millisecond Timeout value. in acpi_os_wait_semaphore()
785 if (clock_gettime(CLOCK_REALTIME, &time) == -1) { in acpi_os_wait_semaphore()
790 time.tv_sec += (msec_timeout / ACPI_MSEC_PER_SEC); in acpi_os_wait_semaphore()
791 time.tv_nsec += in acpi_os_wait_semaphore()
796 if (time.tv_nsec >= ACPI_NSEC_PER_SEC) { in acpi_os_wait_semaphore()
797 time.tv_sec += (time in acpi_os_wait_semaphore()
984 struct timeval time; acpi_os_get_timer() local
[all...]
/kernel/linux/linux-6.6/tools/power/acpi/os_specific/service_layers/
H A Dosunixxf.c24 #include <sys/time.h>
721 struct timespec time; in acpi_os_wait_semaphore() local
782 * The interface to sem_timedwait is an absolute time, so we need to in acpi_os_wait_semaphore()
783 * get the current time, then add in the millisecond Timeout value. in acpi_os_wait_semaphore()
785 if (clock_gettime(CLOCK_REALTIME, &time) == -1) { in acpi_os_wait_semaphore()
790 time.tv_sec += (msec_timeout / ACPI_MSEC_PER_SEC); in acpi_os_wait_semaphore()
791 time.tv_nsec += in acpi_os_wait_semaphore()
796 if (time.tv_nsec >= ACPI_NSEC_PER_SEC) { in acpi_os_wait_semaphore()
797 time.tv_sec += (time in acpi_os_wait_semaphore()
984 struct timeval time; acpi_os_get_timer() local
[all...]
/third_party/skia/third_party/externals/swiftshader/tests/regres/deqp/
H A Ddeqp.go32 "time"
70 TestTimeout time.Duration
81 Duration time.Duration
88 TimeTaken time.Duration
141 start := time.Now()
237 lastUpdate := time.Now()
239 start, i := time.Now(), 0
242 if time.Since(lastUpdate) > time.Minute {
243 lastUpdate = time
[all...]
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock/
H A D1-1.c8 * Test that clock() returns a clock_t containing the processor time
9 * since a specific point in time.
10 * Dividing the return value by CLOCKS_PER_SEC gives time in seconds.
15 * get the CPU time to increase.
17 #include <time.h>
20 #include <time.h>
29 time_t end = time(NULL) + MAX_RUNTIME_SECONDS; in main()
33 printf("processor time not available\n"); in main()
46 } while (end >= time(NULL)); in main()
/third_party/node/deps/v8/src/base/platform/
H A Dplatform-posix-time.cc7 #include "src/base/platform/platform-posix-time.h"
12 const char* PosixDefaultTimezoneCache::LocalTimezone(double time) { in LocalTimezone() argument
13 if (std::isnan(time)) return ""; in LocalTimezone()
14 time_t tv = static_cast<time_t>(std::floor(time / msPerSecond)); in LocalTimezone()
24 time_t tv = time(nullptr); in LocalTimeOffset()
/third_party/rust/crates/rustix/src/time/
H A Dtimerfd.rs4 pub use backend::time::types::{Itimerspec, TimerfdClockId, TimerfdFlags, TimerfdTimerFlags};
14 backend::time::syscalls::timerfd_create(clockid, flags) in timerfd_create()
17 /// `timerfd_settime(clockid, flags, new_value)`—Set the time on a timer.
29 backend::time::syscalls::timerfd_settime(fd.as_fd(), flags, new_value) in timerfd_settime()
40 backend::time::syscalls::timerfd_gettime(fd.as_fd()) in timerfd_gettime()

Completed in 20 milliseconds

1...<<11121314151617181920>>...313