/third_party/python/Lib/test/test_asyncio/ |
H A D | test_tasks.py | 651 # Test which did not time out. 1072 self.assertAlmostEqual(0.3, loop.time()) 1108 self.assertAlmostEqual(0.15, loop.time()) 1110 # Doing it again should take no time and exercise a different path. 1112 self.assertAlmostEqual(0.15, loop.time()) 1165 self.assertAlmostEqual(0.1, loop.time()) 1218 self.assertAlmostEqual(0, loop.time()) 1248 self.assertAlmostEqual(0.01, loop.time()) 1281 self.assertAlmostEqual(0.15, loop.time()) 1284 self.assertAlmostEqual(0.15, loop.time()) [all...] |
H A D | test_base_events.py | 9 import time namespace 278 when = self.loop.time() + delay 280 t0 = self.loop.time() 282 dt = self.loop.time() - t0 305 loop.call_at(loop.time() + 60, cb) 309 loop.call_at(loop.time() + 60, cb) 359 h1 = asyncio.TimerHandle(time.monotonic() + 5.0, lambda: True, (), 361 h2 = asyncio.TimerHandle(time.monotonic() + 10.0, lambda: True, (), 391 h = asyncio.TimerHandle(time.monotonic() - 1, cb, (self.loop,), 1887 self.loop.call_at(self.loop.time() [all...] |
/kernel/linux/linux-5.10/net/bridge/ |
H A D | br_multicast.c | 1476 unsigned long time; in br_multicast_send_query() local 1502 time = jiffies; in br_multicast_send_query() 1503 time += own_query->startup_sent < br->multicast_startup_query_count ? in br_multicast_send_query() 1506 mod_timer(&own_query->timer, time); in br_multicast_send_query() 2816 unsigned long time; in br_multicast_leave_group() local 2852 time = jiffies + br->multicast_last_member_count * in br_multicast_leave_group() 2855 mod_timer(&own_query->timer, time); in br_multicast_leave_group() 2865 time_after(p->timer.expires, time) : in br_multicast_leave_group() 2867 mod_timer(&p->timer, time); in br_multicast_leave_group() 2875 time in br_multicast_leave_group() [all...] |
/third_party/cups-filters/utils/ |
H A D | cups-browsed.c | 38 #include <time.h> 166 /* Data structure for taking note of each time the remote printer 745 time_t curtime = time(NULL); in debug_printf() 781 time_t curtime = time(NULL); in debug_log_out() 6030 q->timeout = time(NULL) + TIMEOUT_IMMEDIATELY; in join_cluster_if_needed() 6282 /* We keep track of the printer which we used last time and start in on_job_state() 6283 checking with the next printer this time, to get a "round robin" in on_job_state() 6702 p->timeout = time(NULL) + TIMEOUT_IMMEDIATELY; in on_printer_deleted() 6960 p->timeout = time(NULL) + TIMEOUT_IMMEDIATELY; in on_printer_modified() 6970 p->timeout = time(NUL in on_printer_modified() [all...] |
/foundation/graphic/graphic_surface/surface/test/unittest/ |
H A D | producer_surface_test.cpp | 1321 int64_t time = 0; in HWTEST_F() local 1323 GSError ret = surface_->GetPresentTimestamp(firstSeqnum, type, time); in HWTEST_F() 1341 int64_t time = 0; in HWTEST_F() local 1343 GSError ret = pSurface->GetPresentTimestamp(firstSeqnum, type, time); in HWTEST_F() 1358 int64_t time = 0; in HWTEST_F() local 1359 GSError ret = pSurface->GetPresentTimestamp(-1, type, time); in HWTEST_F() 1381 int64_t time = 0; in HWTEST_F() local 1382 ret = pSurface->GetPresentTimestamp(sequence, type, time); in HWTEST_F()
|
/foundation/multimedia/audio_framework/frameworks/js/napi/audiocapturer/ |
H A D | napi_audio_capturer.cpp | 515 context->time = static_cast<uint64_t>(timestamp.time.tv_nsec) + in GetAudioTime() 516 static_cast<uint64_t>(timestamp.time.tv_sec) * secToNanosecond; in GetAudioTime() 523 NapiParamUtils::SetValueInt64(env, static_cast<int64_t>(context->time), output); in GetAudioTime() 545 uint64_t time = static_cast<uint64_t>(timestamp.time.tv_nsec) + in GetAudioTimeSync() local 546 static_cast<uint64_t>(timestamp.time.tv_sec) * secToNanosecond; in GetAudioTimeSync() 548 NapiParamUtils::SetValueInt64(env, static_cast<int64_t>(time), result); in GetAudioTimeSync()
|
/foundation/multimedia/media_lite/services/recorder_lite/impl/src/ |
H A D | recorder_impl.cpp | 23 #include <sys/time.h> 1477 int64_t time; in StopInternal() local 1490 time = CalcDiffTimeMs(begin, end); in StopInternal() 1491 MEDIA_INFO_LOG("StopVideoSource cost:%lld", time); in StopInternal() 1500 time = CalcDiffTimeMs(begin, end); in StopInternal() 1501 MEDIA_INFO_LOG("StopAudioSource cost:%lld", time); in StopInternal() 1519 time = CalcDiffTimeMs(begin, end); in StopInternal() 1520 MEDIA_INFO_LOG("recorderSink Stop cost:%lld", time); in StopInternal()
|
/kernel/linux/linux-5.10/drivers/iio/light/ |
H A D | tsl2772.c | 404 * by a device-specific scale factor, and divided by the integration time and 759 /* set chip time scaling and saturation */ in tsl2772_chip_on() 792 /* Power-on settling time */ in tsl2772_chip_on() 1110 u8 time; in tsl2772_write_event_value() local 1144 time = chip->settings.als_time; in tsl2772_write_event_value() 1146 time = chip->settings.prox_time; in tsl2772_write_event_value() 1148 count = 256 - time; in tsl2772_write_event_value() 1183 u8 time; in tsl2772_read_event_value() local 1213 time = chip->settings.als_time; in tsl2772_read_event_value() 1220 time in tsl2772_read_event_value() [all...] |
/kernel/linux/linux-5.10/drivers/usb/host/ |
H A D | xhci-tegra.c | 920 struct tm time; in tegra_xusb_load_firmware() local 1017 time64_to_tm(timestamp, 0, &time); in tegra_xusb_load_firmware() 1020 time.tm_year + 1900, time.tm_mon + 1, time.tm_mday, in tegra_xusb_load_firmware() 1021 time.tm_hour, time.tm_min, time.tm_sec); in tegra_xusb_load_firmware()
|
/kernel/linux/linux-5.10/drivers/media/test-drivers/vidtv/ |
H A D | vidtv_psi.c | 23 #include <linux/time.h> 1989 struct tm time; in vidtv_psi_eit_event_init() local 2000 time64_to_tm(ts.tv_sec, 0, &time); in vidtv_psi_eit_event_init() 2003 if (time.tm_mon < 2) in vidtv_psi_eit_event_init() 2008 mjd = 14956 + time.tm_mday; in vidtv_psi_eit_event_init() 2009 mjd += (time.tm_year - l) * 36525 / 100; in vidtv_psi_eit_event_init() 2010 mjd += (time.tm_mon + 2 + l * 12) * 306001 / 10000; in vidtv_psi_eit_event_init() 2019 e->start_time[2] = bin2bcd(time.tm_hour); in vidtv_psi_eit_event_init() 2028 * time once the event expires. in vidtv_psi_eit_event_init()
|
/kernel/linux/linux-6.6/drivers/media/test-drivers/vidtv/ |
H A D | vidtv_psi.c | 22 #include <linux/time.h> 1981 struct tm time; in vidtv_psi_eit_event_init() local 1992 time64_to_tm(ts.tv_sec, 0, &time); in vidtv_psi_eit_event_init() 1995 if (time.tm_mon < 2) in vidtv_psi_eit_event_init() 2000 mjd = 14956 + time.tm_mday; in vidtv_psi_eit_event_init() 2001 mjd += (time.tm_year - l) * 36525 / 100; in vidtv_psi_eit_event_init() 2002 mjd += (time.tm_mon + 2 + l * 12) * 306001 / 10000; in vidtv_psi_eit_event_init() 2011 e->start_time[2] = bin2bcd(time.tm_hour); in vidtv_psi_eit_event_init() 2020 * time once the event expires. in vidtv_psi_eit_event_init()
|
/kernel/linux/linux-6.6/drivers/iio/light/ |
H A D | tsl2772.c | 406 * by a device-specific scale factor, and divided by the integration time and 754 /* set chip time scaling and saturation */ in tsl2772_chip_on() 787 /* Power-on settling time */ in tsl2772_chip_on() 1105 u8 time; in tsl2772_write_event_value() local 1139 time = chip->settings.als_time; in tsl2772_write_event_value() 1141 time = chip->settings.prox_time; in tsl2772_write_event_value() 1143 count = 256 - time; in tsl2772_write_event_value() 1178 u8 time; in tsl2772_read_event_value() local 1208 time = chip->settings.als_time; in tsl2772_read_event_value() 1215 time in tsl2772_read_event_value() [all...] |
/kernel/linux/linux-6.6/tools/perf/util/scripting-engines/ |
H A D | trace-event-python.c | 863 pydict_set_item_string_decref(dict_sample, "time", in get_perf_sample_dict() 864 PyLong_FromUnsignedLongLong(sample->time)); in get_perf_sample_dict() 944 unsigned long long nsecs = sample->time; in python_process_tracepoint() 1313 tuple_set_d64(t, 9, es->sample->time); in python_export_sample_table() 1431 tuple_set_d64(t, 2, sample->time); in python_export_context_switch() 1532 tuple_set_u64(t, 0, event->throttle.time); in python_process_throttle() 1567 tuple_set_u64(t, 0, sample->time); in python_do_process_switch() 1602 unsigned long long tm = e->time; in python_process_auxtrace_error() 1612 msg = (const char *)&e->time; in python_process_auxtrace_error()
|
/third_party/backends/frontend/ |
H A D | tstbackend.c | 35 #include <time.h> 1348 srandom(time(NULL)); in test_scan() 1567 * test sane_get_device function, if time is greter than 0, 1571 * @param time time to loop 1574 static int test_get_devices(const SANE_Device ***device_list, int time) in test_get_devices() argument 1641 /* loop on detecting device to let time to plug/unplug scanners */ in test_get_devices() 1642 while(loop<time) { in test_get_devices() 1673 printf("Usage: %s [-d backend_name] [-l test_level] [-s] [-r recursion_level] [-g time (s)]\n", execname); in usage() 1679 printf("\t-g\ttime to loop on sane_get_devices function to test scannet hotplug detection (time i in usage() 1695 int time; main() local [all...] |
/third_party/python/Lib/logging/ |
H A D | __init__.py | 26 import sys, os, time, io, re, traceback, warnings, weakref, collections.abc namespace 56 #_startTime is used as the base when calculating the relative time of events 58 _startTime = time.time() 284 LogRecord instances are created every time something is logged. They 297 ct = time.time() 560 %(created)f Time when the LogRecord was created (time.time() 562 %(asctime)s Textual time whe [all...] |
/third_party/toybox/porting/liteos_a/toys/posix/ |
H A D | ps.c | 172 long long ticks, bits, time; 216 SLOT_policy, /*man sched_setscheduler*/SLOT_blkioticks,// IO wait time 319 {"TIME", "CPU time consumed", 8, SLOT_utime}, 320 {"ELAPSED", "Elapsed time since PID start", 11, SLOT_starttime}, 321 {"TIME+", "CPU time (high precision)", 9, SLOT_utime}, 327 {"%CPU", "Percentage of CPU time used", 4, SLOT_utime2}, 342 {"STIME", "Start time (ISO 8601)", 5, SLOT_starttime}, 577 time_t t = time(0)-slot[SLOT_uptime]+slot[SLOT_starttime]/TT.ticks; in string_field() 653 putchar(TT.time ? '\r' : '\n'); in show_ps() 1365 // First time, wai in top_common() [all...] |
/third_party/toybox/toys/posix/ |
H A D | ps.c | 93 Show process activity in real time. 215 long long ticks, bits, time; 259 SLOT_policy, /*man sched_setscheduler*/SLOT_blkioticks,// IO wait time 362 {"TIME", "CPU time consumed", 8, SLOT_utime}, 363 {"ELAPSED", "Elapsed time since PID start", 11, SLOT_starttime}, 364 {"TIME+", "CPU time (high precision)", 9, SLOT_utime}, 370 {"%CPU", "Percentage of CPU time used", 4, SLOT_utime2}, 385 {"STIME", "Start time (ISO 8601)", 5, SLOT_starttime}, 620 time_t t = time(0)-slot[SLOT_uptime]+slot[SLOT_starttime]/TT.ticks; in string_field() 696 putchar(TT.time in show_ps() [all...] |
/third_party/python/Lib/test/ |
H A D | test_xmlrpc.py | 5 import time namespace 481 with mock.patch('time.localtime') as localtime_mock: 482 time_struct = time.struct_time( 485 localtime = time.localtime() 488 time.strftime("%Y%m%dT%H:%M:%S", localtime)) 494 time.strftime("%Y%m%dT%H:%M:%S", time.localtime(d))) 502 d = time.localtime(1181399930.036952) 504 self.assertEqual(str(t), time.strftime("%Y%m%dT%H:%M:%S", d)) 605 # the event after it has been set the first time t [all...] |
/third_party/rust/crates/nix/src/sys/socket/ |
H A D | mod.rs | 6 use crate::sys::time::TimeSpec; 8 use crate::sys::time::TimeVal; 568 /// # use nix::sys::time::TimeVal; 676 /// A message of type `SCM_TIMESTAMP`, containing the time the 687 /// # use nix::sys::time::*; 689 /// # use std::time::*; 703 /// // Get initial time 721 /// // Check the final time 1163 /// Configure the transmission time of packets. 1684 mut timeout: Option<crate::sys::time in recvmmsg() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/video/ |
H A D | video_pattern.cpp | 71 std::string IntTimeToText(uint32_t time) in IntTimeToText() argument 73 auto minutes = (time % SECONDS_PER_HOUR) / SECONDS_PER_MINUTE; in IntTimeToText() 74 auto seconds = time % SECONDS_PER_MINUTE; in IntTimeToText() 75 if (time >= SECONDS_PER_HOUR) { in IntTimeToText() 76 auto hours = time / SECONDS_PER_HOUR; in IntTimeToText() 522 json->Put("time", static_cast<double>(currentPos)); in OnCurrentTimeChange() 786 void VideoPattern::OnUpdateTime(uint32_t time, int pos) const in OnUpdateTime() argument 811 std::string timeText = IntTimeToText(time); in OnUpdateTime() 821 sliderPattern->UpdateValue(static_cast<float>(time)); in OnUpdateTime() 1345 RefPtr<FrameNode> VideoPattern::CreateText(uint32_t time) in OnModifyDone() argument [all...] |
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | session.c | 613 event->fork.time = bswap_64(event->fork.time); in perf_event__task_swap() 686 event->throttle.time = bswap_64(event->throttle.time); in perf_event__throttle_swap() 870 event->auxtrace_error.time = bswap_64(event->auxtrace_error.time); in perf_event__auxtrace_error_swap() 945 event->stat_round.time = bswap_64(event->stat_round.time); in perf_event__stat_round_swap() 1223 printf("%" PRIu64 " ", sample->time); in perf_evlist__print_tstamp() 1231 printf("...... time enable in sample_read__printf() [all...] |
/kernel/linux/linux-5.10/fs/ubifs/ |
H A D | tnc.c | 84 * time of the last successful commit. Many of the index nodes in the old index 340 * may be changed at any time, e.g. freed by the shrinker. 1211 time64_t time = ktime_get_seconds(); in ubifs_lookup_level0() local 1223 znode->time = time; in ubifs_lookup_level0() 1238 znode->time = time; in ubifs_lookup_level0() 1347 time64_t time = ktime_get_seconds(); in lookup_level0_dirty() local 1362 znode->time = time; in lookup_level0_dirty() [all...] |
/kernel/linux/linux-6.6/fs/ubifs/ |
H A D | tnc.c | 85 * time of the last successful commit. Many of the index nodes in the old index 341 * may be changed at any time, e.g. freed by the shrinker. 1212 time64_t time = ktime_get_seconds(); in ubifs_lookup_level0() local 1224 znode->time = time; in ubifs_lookup_level0() 1239 znode->time = time; in ubifs_lookup_level0() 1348 time64_t time = ktime_get_seconds(); in lookup_level0_dirty() local 1363 znode->time = time; in lookup_level0_dirty() [all...] |
/kernel/linux/linux-6.6/net/sched/ |
H A D | sch_taprio.c | 22 #include <linux/time.h> 52 * after this time 216 /* Get how much time has been already elapsed in the current cycle. */ 217 static s32 get_cycle_time_elapsed(struct sched_gate_list *sched, ktime_t time) in get_cycle_time_elapsed() argument 222 time_since_sched_start = ktime_sub(time, sched->base_time); in get_cycle_time_elapsed() 320 ktime_t time, in find_entry_to_transmit() 344 cycle_elapsed = get_cycle_time_elapsed(sched, time); in find_entry_to_transmit() 345 curr_intv_end = ktime_sub_ns(time, cycle_elapsed); in find_entry_to_transmit() 362 if (ktime_before(txtime, time) || validate_interval) { in find_entry_to_transmit() 363 transmit_end_time = ktime_add_ns(time, packet_transmit_tim in find_entry_to_transmit() 316 find_entry_to_transmit(struct sk_buff *skb, struct Qdisc *sch, struct sched_gate_list *sched, struct sched_gate_list *admin, ktime_t time, ktime_t *interval_start, ktime_t *interval_end, bool validate_interval) find_entry_to_transmit() argument [all...] |
/third_party/glfw/src/ |
H A D | x11_window.c | 934 reply.xselection.time = request->time; in handleSelectionRequest() 1258 Time diff = event->xkey.time - window->x11.keyPressTimes[keycode]; in processEvent() 1259 if (diff == event->xkey.time || (diff > 0 && diff < ((Time)1 << 31))) in processEvent() 1264 window->x11.keyPressTimes[keycode] = event->xkey.time; in processEvent() 1323 // pairs with similar or identical time stamps in processEvent() 1335 // HACK: The time of repeat events sometimes doesn't in processEvent() 1342 if ((next.xkey.time - event->xkey.time) < 20) in processEvent() 1616 Time time in processEvent() local [all...] |