/kernel/linux/linux-6.6/tools/laptop/dslm/ |
H A D | dslm.c | 12 #include <time.h> 58 static char *myctime(time_t time) in myctime() argument 60 char *ts = ctime(&time); in myctime() 84 start_time = last_time = time(0); in measure() 93 curr_time = time(0); in measure() 109 total_time = time(0) - start_time; in measure() 110 printf("\nTotal running time: %lus\n", curr_time - start_time); in measure() 128 puts("usage: dslm [-w <time>] <disk>"); in usage()
|
/third_party/libuv/test/ |
H A D | benchmark-async.c | 79 uint64_t time; in test_async() local 96 time = uv_hrtime(); in test_async() 103 time = uv_hrtime() - time; in test_async() 115 time / 1e9, in test_async() 116 fmt(&fmtbuf, NUM_PINGS / (time / 1e9))); in test_async()
|
/third_party/mesa3d/.gitlab-ci/lava/utils/ |
H A D | gitlab_section.py | 40 def get_timestamp(self, time: datetime) -> str: 41 unix_ts = datetime.timestamp(time) 44 def section(self, marker: str, header: str, time: datetime) -> str: 50 timestamp = self.get_timestamp(time) 67 return self.section(marker="start", header=self.header, time=self.__start_time) 74 ), "Section execution time will be negative" 75 return self.section(marker="end", header="", time=self.__end_time)
|
/third_party/node/deps/uv/src/ |
H A D | timer.c | 79 clamped_timeout = handle->loop->time + timeout; in uv_timer_start() 135 if (handle->loop->time >= handle->timeout) in uv_timer_get_due_in() 138 return handle->timeout - handle->loop->time; in uv_timer_get_due_in() 152 if (handle->timeout <= loop->time) in uv__next_timeout() 155 diff = handle->timeout - loop->time; in uv__next_timeout() 173 if (handle->timeout > loop->time) in uv__run_timers()
|
/third_party/libinput/src/ |
H A D | util-input-event.h | 28 #include "util-time.h" 32 input_event_init(uint64_t time, in input_event_init() argument 38 struct timeval tval = us2tv(time); in input_event_init() 62 uint64_t time) in input_event_set_time() 64 struct timeval tval = us2tv(time); in input_event_set_time() 61 input_event_set_time(struct input_event *e, uint64_t time) input_event_set_time() argument
|
/third_party/python/Lib/test/ |
H A D | test_wait4.py | 5 import time namespace 25 deadline = time.monotonic() + support.SHORT_TIMEOUT 26 while time.monotonic() <= deadline: 32 time.sleep(0.1)
|
H A D | test_wait3.py | 7 import time namespace 23 deadline = time.monotonic() + support.SHORT_TIMEOUT 24 while time.monotonic() <= deadline: 30 time.sleep(0.1)
|
/third_party/rust/crates/humantime/benches/ |
H A D | datetime_format.rs | 5 use std::time::{Duration, UNIX_EPOCH}; 11 let time = UNIX_EPOCH + Duration::new(1_483_228_799, 0); in rfc3339_humantime_seconds() 15 write!(&mut buf, "{}", format_rfc3339(time)).unwrap() in rfc3339_humantime_seconds() 28 let time = DateTime::<Utc>::from_utc( in rfc3339_chrono() 53 write!(&mut buf, "{}", time.format_with_items(ITEMS.iter().cloned()))
|
/test/xts/hats/hdf/audio/idl/common/render/src/ |
H A D | audio_render_mmap_test.cpp | 169 struct AudioTimeStamp time; in HWTEST_F() local 170 time.tvNSec = 0; in HWTEST_F() 171 time.tvSec = 0; in HWTEST_F() 172 EXPECT_EQ(HDF_ERR_INVALID_OBJECT, render_->GetMmapPosition(nullptr, &frames, &time)); in HWTEST_F() 178 struct AudioTimeStamp time; in HWTEST_F() local 179 time.tvNSec = 0; in HWTEST_F() 180 time.tvSec = 0; in HWTEST_F() 190 ret = render_->GetMmapPosition(render_, &frames, &time); in HWTEST_F()
|
/third_party/node/deps/npm/node_modules/npm-pick-manifest/lib/ |
H A D | index.js | 17 const isBefore = (verTimes, ver, time) => 18 !verTimes || !verTimes[ver] || Date.parse(verTimes[ver]) <= time 40 const { name, time: verTimes } = packument 87 const time = before && verTimes ? +(new Date(before)) : Infinity 103 if (isBefore(verTimes, ver, time)) { 114 return isBefore(verTimes, ver, time) ? decorateAvoid(mani, avoid) : null 128 if (mani && isBefore(verTimes, defaultVer, time)) { 137 .filter(([ver, mani]) => isBefore(verTimes, ver, time))
|
/third_party/ltp/testcases/misc/math/fptests/ |
H A D | fptest01.c | 71 double time; member 87 double lsttime; /* time used for editing */ 134 dtw = 1. / nproc; /* mean process work time */ in init() 135 dtwsig = dtw * alpha; /* std deviation of work time */ in init() 160 t_total += eventtab[i].time; in term() 204 eventtab[i].time = t; in addevent() 226 if (eventtab[i].type != NULLEVENT && eventtab[i].time < mintime) { in nextevent() 228 mintime = eventtab[i].time; in nextevent() 235 rtrevent.time = eventtab[imin].time; in nextevent() [all...] |
/third_party/skia/infra/bots/task_drivers/canary/ |
H A D | canary.go | 12 "time" 26 MinWaitDuration = 4 * time.Minute 91 Timestamp: firestore.FixTimestamp(time.Now()), 112 time.Sleep(time.Minute) 128 startTime := time.Now() 160 if time.Now().Before(startTime.Add(MinWaitDuration)) { 173 time.Sleep(30 * time.Second)
|
/kernel/linux/linux-5.10/drivers/rtc/ |
H A D | rtc-armada38x.c | 216 unsigned long time, flags; in armada38x_rtc_read_time() local 219 time = rtc->data->read_rtc_reg(rtc, RTC_TIME); in armada38x_rtc_read_time() 222 rtc_time64_to_tm(time, tm); in armada38x_rtc_read_time() 235 msleep(500); /* Oscillator startup time */ in armada38x_rtc_reset() 247 unsigned long time, flags; in armada38x_rtc_set_time() local 249 time = rtc_tm_to_time64(tm); in armada38x_rtc_set_time() 255 rtc_delayed_write(time, rtc, RTC_TIME); in armada38x_rtc_set_time() 264 unsigned long time, flags; in armada38x_rtc_read_alarm() local 271 time = rtc->data->read_rtc_reg(rtc, reg); in armada38x_rtc_read_alarm() 277 rtc_time64_to_tm(time, in armada38x_rtc_read_alarm() 287 unsigned long time, flags; armada38x_rtc_set_alarm() local [all...] |
H A D | rtc-at91rm9200.c | 31 #include <linux/time.h> 151 * Decode time/date into rtc_time structure 156 unsigned int time, date; in at91_rtc_decodetime() local 160 time = at91_rtc_read(timereg); in at91_rtc_decodetime() 162 } while ((time != at91_rtc_read(timereg)) || in at91_rtc_decodetime() 165 tm->tm_sec = bcd2bin(FIELD_GET(AT91_RTC_SEC, time)); in at91_rtc_decodetime() 166 tm->tm_min = bcd2bin(FIELD_GET(AT91_RTC_MIN, time)); in at91_rtc_decodetime() 167 tm->tm_hour = bcd2bin(FIELD_GET(AT91_RTC_HOUR, time)); in at91_rtc_decodetime() 182 * Read current time and date in RTC 196 * Set current time an [all...] |
H A D | rtc-mpc5121.c | 3 * Real-time clock driver for MPC5121 65 * time 70 * readonly time since VBAT_RTC was last connected 96 /* set time sequence */ in mpc5121_rtc_update_smh() 110 * linux time is actual_time plus the offset saved in target_time in mpc5121_rtc_read_time() 133 * between it and linux time to the target_time register. in mpc5121_rtc_set_time() 216 if (alarm->time.tm_sec) { in mpc5121_rtc_set_alarm() 217 alarm->time.tm_sec = 0; in mpc5121_rtc_set_alarm() 218 alarm->time.tm_min++; in mpc5121_rtc_set_alarm() 219 if (alarm->time in mpc5121_rtc_set_alarm() [all...] |
H A D | dev.c | 251 * use the local wall clock time. in rtc_dev_ioctl() 262 if (copy_to_user(uarg, &alarm.time, sizeof(tm))) in rtc_dev_ioctl() 269 if (copy_from_user(&alarm.time, uarg, sizeof(tm))) in rtc_dev_ioctl() 274 alarm.time.tm_wday = -1; in rtc_dev_ioctl() 275 alarm.time.tm_yday = -1; in rtc_dev_ioctl() 276 alarm.time.tm_isdst = -1; in rtc_dev_ioctl() 299 alarm.time.tm_mday = tm.tm_mday; in rtc_dev_ioctl() 300 alarm.time.tm_mon = tm.tm_mon; in rtc_dev_ioctl() 301 alarm.time.tm_year = tm.tm_year; in rtc_dev_ioctl() 302 err = rtc_valid_tm(&alarm.time); in rtc_dev_ioctl() [all...] |
H A D | rtc-ds1374.c | 88 static int ds1374_read_rtc(struct i2c_client *client, u32 *time, in ds1374_read_rtc() argument 105 for (i = nbytes - 1, *time = 0; i >= 0; i--) in ds1374_read_rtc() 106 *time = (*time << 8) | buf[i]; in ds1374_read_rtc() 111 static int ds1374_write_rtc(struct i2c_client *client, u32 time, in ds1374_write_rtc() argument 123 buf[i] = time & 0xff; in ds1374_write_rtc() 124 time >>= 8; in ds1374_write_rtc() 141 "oscillator discontinuity flagged, time unreliable\n"); in ds1374_check_rtc_status() 162 static int ds1374_read_time(struct device *dev, struct rtc_time *time) in ds1374_read_time() argument 170 rtc_time64_to_tm(itime, time); in ds1374_read_time() 175 ds1374_set_time(struct device *dev, struct rtc_time *time) ds1374_set_time() argument [all...] |
H A D | rtc-rx8025.c | 304 t->time.tm_sec = 0; in rx8025_read_alarm() 305 t->time.tm_min = bcd2bin(ald[0] & 0x7f); in rx8025_read_alarm() 307 t->time.tm_hour = bcd2bin(ald[1] & 0x3f); in rx8025_read_alarm() 309 t->time.tm_hour = bcd2bin(ald[1] & 0x1f) % 12 in rx8025_read_alarm() 312 dev_dbg(dev, "%s: date: %ptRr\n", __func__, &t->time); in rx8025_read_alarm() 333 if (t->time.tm_sec) { in rx8025_set_alarm() 334 time64_t alarm_time = rtc_tm_to_time64(&t->time); in rx8025_set_alarm() 336 alarm_time += 60 - t->time.tm_sec; in rx8025_set_alarm() 337 rtc_time64_to_tm(alarm_time, &t->time); in rx8025_set_alarm() 340 ald[0] = bin2bcd(t->time in rx8025_set_alarm() [all...] |
/kernel/linux/linux-6.6/drivers/rtc/ |
H A D | rtc-armada38x.c | 215 unsigned long time, flags; in armada38x_rtc_read_time() local 218 time = rtc->data->read_rtc_reg(rtc, RTC_TIME); in armada38x_rtc_read_time() 221 rtc_time64_to_tm(time, tm); in armada38x_rtc_read_time() 234 msleep(500); /* Oscillator startup time */ in armada38x_rtc_reset() 246 unsigned long time, flags; in armada38x_rtc_set_time() local 248 time = rtc_tm_to_time64(tm); in armada38x_rtc_set_time() 254 rtc_delayed_write(time, rtc, RTC_TIME); in armada38x_rtc_set_time() 263 unsigned long time, flags; in armada38x_rtc_read_alarm() local 270 time = rtc->data->read_rtc_reg(rtc, reg); in armada38x_rtc_read_alarm() 276 rtc_time64_to_tm(time, in armada38x_rtc_read_alarm() 286 unsigned long time, flags; armada38x_rtc_set_alarm() local [all...] |
H A D | rtc-at91rm9200.c | 30 #include <linux/time.h> 158 * Decode time/date into rtc_time structure 163 unsigned int time, date; in at91_rtc_decodetime() local 167 time = at91_rtc_read(timereg); in at91_rtc_decodetime() 169 } while ((time != at91_rtc_read(timereg)) || in at91_rtc_decodetime() 172 tm->tm_sec = bcd2bin(FIELD_GET(AT91_RTC_SEC, time)); in at91_rtc_decodetime() 173 tm->tm_min = bcd2bin(FIELD_GET(AT91_RTC_MIN, time)); in at91_rtc_decodetime() 174 tm->tm_hour = bcd2bin(FIELD_GET(AT91_RTC_HOUR, time)); in at91_rtc_decodetime() 189 * Read current time and date in RTC 203 * Set current time an [all...] |
H A D | dev.c | 253 * use the local wall clock time. in rtc_dev_ioctl() 264 if (copy_to_user(uarg, &alarm.time, sizeof(tm))) in rtc_dev_ioctl() 271 if (copy_from_user(&alarm.time, uarg, sizeof(tm))) in rtc_dev_ioctl() 276 alarm.time.tm_wday = -1; in rtc_dev_ioctl() 277 alarm.time.tm_yday = -1; in rtc_dev_ioctl() 278 alarm.time.tm_isdst = -1; in rtc_dev_ioctl() 301 alarm.time.tm_mday = tm.tm_mday; in rtc_dev_ioctl() 302 alarm.time.tm_mon = tm.tm_mon; in rtc_dev_ioctl() 303 alarm.time.tm_year = tm.tm_year; in rtc_dev_ioctl() 304 err = rtc_valid_tm(&alarm.time); in rtc_dev_ioctl() [all...] |
/third_party/jerryscript/jerry-core/ecma/builtin-objects/ |
H A D | ecma-builtin-date.c | 322 ecma_number_t time = ECMA_NUMBER_ZERO; in ecma_builtin_date_parse_ISO_string_format() local 336 /* 4. read time if any */ in ecma_builtin_date_parse_ISO_string_format() 378 time = ecma_date_make_time (hours, minutes, seconds, milliseconds); in ecma_builtin_date_parse_ISO_string_format() 382 time = ecma_number_make_nan (); in ecma_builtin_date_parse_ISO_string_format() 386 if (ecma_date_parse_special_char (&date_str_curr_p, date_str_end_p, 'Z') && !ecma_number_is_nan (time)) in ecma_builtin_date_parse_ISO_string_format() 388 time = ecma_date_make_time (hours, minutes, seconds, milliseconds); in ecma_builtin_date_parse_ISO_string_format() 408 time += is_timezone_sign_negative ? timezone_offset : -timezone_offset; in ecma_builtin_date_parse_ISO_string_format() 416 return ecma_date_make_date (date, time); in ecma_builtin_date_parse_ISO_string_format() 562 ecma_number_t time = ecma_date_make_time (hours, minutes, seconds, 0); in ecma_builtin_date_parse_toString_formats() local 589 time in ecma_builtin_date_parse_toString_formats() 672 ecma_number_t time = ecma_get_number_from_value (time_value); ecma_builtin_date_utc() local 800 ecma_number_t time = ecma_get_number_from_value (time_value); ecma_builtin_date_dispatch_construct() local [all...] |
/drivers/peripheral/vibrator/interfaces/include/ |
H A D | vibrator_type.h | 86 /**< Indicates the time effect type of the given time series. */ 129 * @brief Defines the time effect parameters. 131 * The parameters include delay, time, intensity and frequency of vibration. 136 int32_t delay; /** Waiting time. */ 137 int32_t time; /** Vibration time. */ member 150 int32_t delay; /** Waiting time. */ 158 * The parameters include time effect and primitive effect. 199 * The information include the time, intensit 205 int32_t time; global() member 223 int32_t time; global() member 247 int32_t time; global() member [all...] |
/drivers/peripheral/vibrator/interfaces/v1_1/ |
H A D | ivibrator_type_vdi.h | 63 int32_t time;
member 90 int32_t time;
member 97 int32_t time;
member 107 int32_t time;
member
|
/test/testfwk/arkxtest/uitest/record/ |
H A D | touch_event.h | 45 // nanosecond time stamp. 58 TimeStamp time {std::chrono::duration_cast<TimeStamp::duration>(std::chrono::nanoseconds(actionTime * 1000))}; in GetActionTimeStamp() 59 return time; in GetActionTimeStamp() 63 TimeStamp time {std::chrono::duration_cast<TimeStamp::duration>(std::chrono::nanoseconds(downTime * 1000))}; in GetDownTimeStamp() 64 return time; in GetDownTimeStamp()
|