Home
last modified time | relevance | path

Searched refs:time (Results 1 – 25 of 1228) sorted by relevance

12345678910>>...50

/Zephyr-latest/doc/kernel/
Dtimeutil.rst14 representation of this time.
16 Applications often need to correlate the Zephyr internal time with external
17 time scales used in daily life, such as local time or Coordinated Universal
18 Time. These systems interpret time in different ways and may have
20 local time offsets like daylight saving time.
23 clocks underlying the cycle counter, the offset between time estimated from
24 the Zephyr clock and the actual time in a "real" civil time scale is not
27 The time utilities API supports:
29 * :ref:`converting between time representations <timeutil_repr>`
30 * :ref:`synchronizing and aligning time scales <timeutil_sync>`
[all …]
/Zephyr-latest/subsys/bindesc/
DKconfig.build_time7 Add the build time binary descriptors
12 bool "Use local time"
14 If enabled, the build time used for the descriptors will express
15 the local time, rather than UTC.
21 If enabled, the file containing the build time definitions will
56 bool "Build time as UNIX time"
58 The UNIX time at which the image was compiled. This is an integer
62 bool "Build date and time as string"
64 The date and time of compilation as a string, such as "2023-09-29T17:43:14+0000"
72 bool "Build time as string"
[all …]
/Zephyr-latest/include/zephyr/dt-bindings/adc/
Dadc.h23 #define ADC_ACQ_TIME_UNIT(time) (((time) >> 14) & BIT_MASK(2)) argument
24 #define ADC_ACQ_TIME_VALUE(time) ((time) & BIT_MASK(14)) argument
/Zephyr-latest/doc/connectivity/networking/api/
Dptp_time.rst4 Precision Time Protocol (PTP) time format
14 The PTP time struct can store time information in high precision
16 time in fractional nanoseconds accuracy. The PTP time format is used
/Zephyr-latest/samples/drivers/counter/maxim_ds3231/src/
Dmain.c16 static const char *format_time(time_t time, in format_time() argument
23 struct tm *tp = gmtime_r(&time, &tv); in format_time()
102 uint32_t time = 0; in min_alarm_handler() local
105 (void)counter_get_value(dev, &time); in min_alarm_handler()
122 uint32_t offset_s = time - (uint32_t)sp.rtc.tv_sec; in min_alarm_handler()
144 format_time(time, -1), in min_alarm_handler()
145 (uint32_t)(ts->tv_sec - time), ts->tv_nsec, in min_alarm_handler()
294 (uint32_t)sec_alarm.time, rc); in main()
297 (uint32_t)min_alarm.time, rc); in main()
303 sec_alarm.time = sp.rtc.tv_sec + 5; in main()
[all …]
/Zephyr-latest/samples/drivers/adc/adc_dt/boards/
Ds32z2xxdc2_s32z270_rtu0.overlay28 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
36 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
44 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
52 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
68 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
76 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
84 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
92 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
Dmec15xxevb_assy6853.overlay20 zephyr,acquisition-time = <0>;
27 zephyr,acquisition-time = <0>;
34 zephyr,acquisition-time = <0>;
41 zephyr,acquisition-time = <0>;
Dmec172xevb_assy6906.overlay20 zephyr,acquisition-time = <0>;
27 zephyr,acquisition-time = <0>;
34 zephyr,acquisition-time = <0>;
41 zephyr,acquisition-time = <0>;
Dmr_canhubk3.overlay26 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
41 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
58 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
66 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
74 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
Dda1469x_dk_pro.overlay42 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
51 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
60 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
69 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
87 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
96 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
106 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
/Zephyr-latest/tests/boards/native_sim/rtc/src/
Dmain.c20 static char *us_time_to_str(char *dest, uint64_t time) in us_time_to_str() argument
22 if (time != NSI_NEVER) { in us_time_to_str()
28 hour = (time / 3600U / 1000000U) % 24; in us_time_to_str()
29 minute = (time / 60U / 1000000U) % 60; in us_time_to_str()
30 second = (time / 1000000U) % 60; in us_time_to_str()
31 us = time % 1000000; in us_time_to_str()
51 uint64_t time; in ZTEST() local
60 time = native_rtc_gettime_us(RTC_CLOCK_REALTIME); in ZTEST()
62 us_time_to_str(time_s, time); in ZTEST()
/Zephyr-latest/tests/posix/rwlocks/src/
Dmain.c54 struct timespec time; in ZTEST() local
57 time.tv_sec = 1; in ZTEST()
58 time.tv_nsec = 0; in ZTEST()
65 zassert_equal(pthread_rwlock_timedwrlock(&rwlock, &time), EINVAL); in ZTEST()
66 zassert_equal(pthread_rwlock_timedrdlock(&rwlock, &time), EINVAL); in ZTEST()
71 zassert_ok(pthread_rwlock_timedwrlock(&rwlock, &time), "Failed to acquire write lock"); in ZTEST()
88 time.tv_sec = 2; in ZTEST()
89 time.tv_nsec = 0; in ZTEST()
90 ret = pthread_rwlock_timedwrlock(&rwlock, &time); in ZTEST()
103 ret = pthread_rwlock_timedrdlock(&rwlock, &time); in ZTEST()
/Zephyr-latest/lib/libc/common/
DCMakeLists.txt8 zephyr_library_sources_ifdef(CONFIG_COMMON_LIBC_ASCTIME source/time/asctime.c)
9 zephyr_library_sources_ifdef(CONFIG_COMMON_LIBC_GMTIME_R source/time/gmtime_r.c)
10 zephyr_library_sources_ifdef(CONFIG_COMMON_LIBC_LOCALTIME_R_UTC source/time/localtime_r_utc.c)
11 zephyr_library_sources_ifdef(CONFIG_COMMON_LIBC_CTIME source/time/ctime.c)
12 zephyr_library_sources_ifdef(CONFIG_COMMON_LIBC_TIME source/time/time.c)
/Zephyr-latest/tests/lib/time/src/
Dmain.c17 time_initial_unaligned = time(NULL); in ZTEST()
24 if (time(NULL) != time_initial_unaligned) { in ZTEST()
29 time_initial = time(NULL); in ZTEST()
37 time_current = time(NULL); in ZTEST()
50 time_result = time(&time_param); in ZTEST()
/Zephyr-latest/doc/hardware/peripherals/
Drtc.rst15 * - Real-time clock
16 - Low power device tracking time using broken-down time
17 * - Real-time counter
18 - Low power counter which can be used to track time
20 - Acronym for real-time clock
22 An RTC is a low power device which tracks time using broken-down time.
30 trigger at a given time. These alarms are commonly used to wake up the
38 between broken-down time and the unix timestamp within the RTC
39 drivers, which internally used the broken-down time representation.
43 specific APIs to set the time, converting from unix time to
[all …]
/Zephyr-latest/tests/benchmarks/sys_kernel/
DREADME.txt16 average time for one iteration is displayed.
25 DETAILS: Average time for 1 iteration: NNNN nSec
36 DETAILS: Average time for 1 iteration: NNNN nSec
48 DETAILS: Average time for 1 iteration: NNNN nSec
58 DETAILS: Average time for 1 iteration: NNNN nSec
70 DETAILS: Average time for 1 iteration: NNNN nSec
82 DETAILS: Average time for 1 iteration: NNNN nSec
92 DETAILS: Average time for 1 iteration: NNNN nSec
104 DETAILS: Average time for 1 iteration: NNNN nSec
116 DETAILS: Average time for 1 iteration: NNNN nSec
[all …]
/Zephyr-latest/scripts/pylib/pytest-twister-harness/tests/resources/
Dfifo_mock.py9 import time
25 end_time = time.time() + 2
27 time.sleep(0.1)
28 if time.time() > end_time:
73 time.sleep(1) # give a moment for external programs to collect all outputs
Dmock_script.py11 import time
34 time.sleep(args.sleep)
39 time.sleep(args.sleep)
43 time.sleep(1) # give a moment for external programs to collect all outputs
/Zephyr-latest/drivers/sensor/st/vl53l1x/
DKconfig1 # VL53L0X time of flight sensor configuration options
7 bool "VL53L1X time of flight sensor"
14 Enable driver for VL53L1X I2C-based time of flight sensor.
19 bool "Use interrupt mode for VL53L1X time of flight sensor"
23 Enable interrupt mode for VL53L1X time of flight sensor. Otherwise,
27 bool "Use xshut pin on VL53L1X time of flight sensor"
/Zephyr-latest/tests/unit/timeutil/
Dtest_gmtime.c19 time_t time = 1561994005; in ZTEST() local
21 zassert_equal(&tm, gmtime_r(&time, &tm), in ZTEST()
24 struct tm *tp = gmtime(&time); in ZTEST()
/Zephyr-latest/tests/benchmarks/app_kernel/src/
Dmailbox_r.c18 unsigned int *time);
40 getinfo.time = gettime; in mailrecvtask()
48 getinfo.time = gettime; in mailrecvtask()
70 unsigned int *time) in mailbox_get() argument
91 *time = timing_cycles_get(&start, &end); in mailbox_get()
/Zephyr-latest/scripts/pylib/pytest-twister-harness/src/twister_harness/device/
Dqemu_adapter.py8 import time
36 timeout_time: float = time.time() + self.base_timeout
37 while time.time() < timeout_time and self._is_binary_running():
40 time.sleep(0.1)
/Zephyr-latest/samples/drivers/counter/maxim_ds3231/
DREADME.rst5 Interact with a DS3231 real-time clock using the counter API and dedicated driver API.
10 The `DS3231`_ temperature-compensated real-time clock is a
11 high-precision (2 ppm) battery backed clock that maintains civil time
28 counter value is read, and its value formatted as the date, time, day of
44 is set, the civil time will be advanced to the start of the next hour,
45 and the clock will be set to align that time with the time of the boot,
46 which in the output below is 34 ms in the past. The time required to
69 Five seconds is added to the current time and the civil time
71 fire at that time on the current day-of-week. The minute-resolution
74 Min Sec base time: 2019-07-19 06:00:07 Fri 200
[all …]
/Zephyr-latest/drivers/ieee802154/
DKconfig.dw100013 int "SNIFF on time"
17 SNIFF on time in unit of PAC. The minimum on time is the duration
18 of two PACs. The SNIFF counter always adds 1 PAC unit to the on-time
23 int "SNIFF off time"
27 SNIFF off time in unit of approximate 1 microsecond.
/Zephyr-latest/boards/native/native_posix/
DKconfig22 bool "Slow down execution to real time"
26 When selected the execution of the process will be slowed down to real time.
27 (if there is a lot of load it may be slower than real time)
29 Note that this only decouples simulated time from real/wall time. In either
31 interact with some other driver/device which runs at real time.

12345678910>>...50