/third_party/skia/third_party/externals/microhttpd/src/examples/ |
H A D | post_example.c | 29 #include <time.h> 188 ret->start = time (NULL); in get_session() 586 session->start = time (NULL); in create_response() 673 now = time (NULL); in expire_sessions() 717 srand ((unsigned int) time (NULL)); in main()
|
/third_party/skia/third_party/externals/microhttpd/src/testcurl/ |
H A D | test_quiesce.c | 33 #include <time.h> 135 start = time (NULL); in ServeOneRequest() 136 while ((time (NULL) - start < 5) && done == 0) in ServeOneRequest() 349 start = time (NULL); in testExternalGet() 350 while ((time (NULL) - start < 5) && (multi != NULL)) in testExternalGet()
|
/third_party/python/Lib/concurrent/futures/ |
H A D | _base.py | 9 import time namespace 206 is no limit on the wait time. 218 end_time = timeout + time.monotonic() 237 wait_timeout = end_time - time.monotonic() 270 is no limit on the wait time. 433 isn't done. If None, then there is no limit on the wait time. 469 time. 590 is no limit on the wait time. 606 end_time = timeout + time.monotonic() 621 yield _result_or_cancel(fs.pop(), end_time - time [all...] |
/third_party/tzdata/ |
H A D | private.h | 13 ** This header is for use ONLY with the time conversion code. 27 they are nonzero. A good time to do that might be in the year 2029 55 ** zdump has been made independent of the rest of the time 65 #define GRANDPARENTED "Local time zone must be set--see zic manual page" 189 #include <time.h> 598 static time_t sys_time(time_t *x) { return time(x); } in sys_time() 637 # undef time macro 638 # define time tz_time macro 697 time_t time(time_t *); 831 /* The extreme time value [all...] |
/kernel/linux/linux-5.10/drivers/rtc/ |
H A D | rtc-pcf2127.c | 132 "oscillator stop detected, date/time is not reliable\n"); in pcf2127_rtc_read_time() 389 alrm->time.tm_sec = bcd2bin(buf[0] & 0x7F); in pcf2127_rtc_read_alarm() 390 alrm->time.tm_min = bcd2bin(buf[1] & 0x7F); in pcf2127_rtc_read_alarm() 391 alrm->time.tm_hour = bcd2bin(buf[2] & 0x3F); in pcf2127_rtc_read_alarm() 392 alrm->time.tm_mday = bcd2bin(buf[3] & 0x3F); in pcf2127_rtc_read_alarm() 426 buf[0] = bin2bcd(alrm->time.tm_sec); in pcf2127_rtc_set_alarm() 427 buf[1] = bin2bcd(alrm->time.tm_min); in pcf2127_rtc_set_alarm() 428 buf[2] = bin2bcd(alrm->time.tm_hour); in pcf2127_rtc_set_alarm() 429 buf[3] = bin2bcd(alrm->time.tm_mday); in pcf2127_rtc_set_alarm()
|
/kernel/linux/linux-5.10/samples/bpf/ |
H A D | xsk_fwd.c | 16 #include <time.h> 315 * buffers are allocated at init time (e.g. for the UMEM fill queue setup). 980 struct timespec time; in main() local 1055 clock_gettime(CLOCK_MONOTONIC, &time); in main() 1056 ns0 = time.tv_sec * 1000000000UL + time.tv_nsec; in main() 1061 clock_gettime(CLOCK_MONOTONIC, &time); in main() 1062 ns1 = time.tv_sec * 1000000000UL + time.tv_nsec; in main()
|
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | jitdump.c | 418 u64 time; in jit_repipe_code_load() member 490 id->time = convert_timestamp(jd, jr->load.p.timestamp); in jit_repipe_code_load() 500 sample.time = id->time; in jit_repipe_code_load() 531 u64 time; in jit_repipe_code_move() member 582 id->time = convert_timestamp(jd, jr->load.p.timestamp); in jit_repipe_code_move() 592 sample.time = id->time; in jit_repipe_code_move()
|
/kernel/linux/linux-6.6/drivers/media/platform/qcom/camss/ |
H A D | camss-vfe-gen1.c | 20 unsigned long time; in vfe_gen1_halt() local 26 time = wait_for_completion_timeout(&vfe->halt_complete, in vfe_gen1_halt() 28 if (!time) { in vfe_gen1_halt() 42 unsigned long time; in vfe_disable_output() local 50 time = wait_for_completion_timeout(&output->sof, msecs_to_jiffies(VFE_NEXT_SOF_MS)); in vfe_disable_output() 51 if (!time) in vfe_disable_output() 62 time = wait_for_completion_timeout(&output->reg_update, msecs_to_jiffies(VFE_NEXT_SOF_MS)); in vfe_disable_output() 63 if (!time) in vfe_disable_output()
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | jitdump.c | 440 u64 time; in jit_repipe_code_load() member 513 id->time = convert_timestamp(jd, jr->load.p.timestamp); in jit_repipe_code_load() 523 sample.time = id->time; in jit_repipe_code_load() 556 u64 time; in jit_repipe_code_move() member 608 id->time = convert_timestamp(jd, jr->load.p.timestamp); in jit_repipe_code_move() 618 sample.time = id->time; in jit_repipe_code_move()
|
/kernel/liteos_a/kernel/base/core/ |
H A D | los_swtmr.c | 612 UINT64 time = (OsSortLinkGetNextExpireTime(currTime, &srq->swtmrSortLink) / OS_CYCLE_PER_TICK); in OsSwtmrGetNextTimeout() local 613 if (time > OS_INVALID_VALUE) { in OsSwtmrGetNextTimeout() 614 time = OS_INVALID_VALUE; in OsSwtmrGetNextTimeout() 616 return (UINT32)time; in OsSwtmrGetNextTimeout() 638 UINT64 time = (OsSortLinkGetTargetExpireTime(currTime, &swtmr->stSortList) / OS_CYCLE_PER_TICK); in OsSwtmrTimeGet() local 639 if (time > OS_INVALID_VALUE) { in OsSwtmrTimeGet() 640 time = OS_INVALID_VALUE; in OsSwtmrTimeGet() 642 return (UINT32)time; in OsSwtmrTimeGet()
|
/test/testfwk/xdevice/plugins/ohos/src/ohos/drivers/ |
H A D | cpp_driver_lite.py | 22 import time namespace 345 time.sleep(5) 445 start_time = time.time() 446 while time.time() - start_time < timeout: 452 time.sleep(5) 541 time.sleep(0.5)
|
/test/xts/hats/hdf/hdf_lite/manager/common/ |
H A D | hdf_ioservice_test.cpp | 91 OsalTimespec time; in OnDevEventReceived() local 92 OsalGetTime(&time); in OnDevEventReceived() 94 eventCount++, static_cast<char *>(service->priv), time.sec, time.usec); in OnDevEventReceived() 109 OsalTimespec time; in SendEvent() local 110 OsalGetTime(&time); in SendEvent() 148 HDF_LOGE("send event finish at %" PRIu64 ".%" PRIu64 "", time.sec, time.usec); in SendEvent()
|
/third_party/icu/icu4j/perf-tests/src/com/ibm/icu/dev/test/perf/ |
H A D | PerfTest.java | 70 * total elapsed time in milliseconds, and the second is the number of events 71 * per iteration. In this example, the time per event is 12047 / (100 * 1109044) 91 protected int time; field in PerfTest 245 public final long time(long n) { in time() method in PerfTest.Function 257 * init is called each time before looping through call 365 UOption.DEF("time", 't', UOption.REQUIRES_ARG), in getOptions() 423 System.out.println("= " + meth + " begin " + time + " seconds"); in run() 475 passes = iterations = time = -1; in parseOptions() 510 time = Integer.parseInt(options[TIME].value); in parseOptions() 592 * Translate '-t time' t [all...] |
/drivers/peripheral/audio/hdi_service/primary_impl/src/ |
H A D | audio_render.c | 756 AUDIO_FUNC_LOGE("Calloc time Fail!"); in LogErrorGetRensonAndTime() 886 &hwRender->renderParam.frameRenderMode.time, in AudioRenderRenderFrame() 894 int32_t AudioRenderGetRenderPosition(struct IAudioRender *render, uint64_t *frames, struct AudioTimeStamp *time) in AudioRenderGetRenderPosition() argument 898 if (impl == NULL || frames == NULL || time == NULL) { in AudioRenderGetRenderPosition() 903 *time = impl->renderParam.frameRenderMode.time; in AudioRenderGetRenderPosition() 1089 int32_t AudioRenderGetMmapPosition(struct IAudioRender *handle, uint64_t *frames, struct AudioTimeStamp *time) in AudioRenderGetMmapPosition() argument 1093 if (render == NULL || frames == NULL || time == NULL) { in AudioRenderGetMmapPosition() 1115 render->renderParam.frameRenderMode.time.tvSec = in AudioRenderGetMmapPosition() 1121 render->renderParam.frameRenderMode.time in AudioRenderGetMmapPosition() [all...] |
H A D | audio_capture.c | 682 AUDIO_FUNC_LOGE("Calloc time Fail!"); in LogErrorGetRensonAndTime() 778 &hwCapture->captureParam.frameCaptureMode.time, in AudioCaptureCaptureFrame() 786 int32_t AudioCaptureGetCapturePosition(struct IAudioCapture *capture, uint64_t *frames, struct AudioTimeStamp *time) in AudioCaptureGetCapturePosition() argument 790 if (impl == NULL || frames == NULL || time == NULL) { in AudioCaptureGetCapturePosition() 796 *time = impl->captureParam.frameCaptureMode.time; in AudioCaptureGetCapturePosition() 912 int32_t AudioCaptureGetMmapPosition(struct IAudioCapture *handle, uint64_t *frames, struct AudioTimeStamp *time) in AudioCaptureGetMmapPosition() argument 916 if (capture == NULL || frames == NULL || time == NULL) { in AudioCaptureGetMmapPosition() 940 capture->captureParam.frameCaptureMode.time.tvSec = (int64_t)(capture->captureParam.frameCaptureMode.frames / in AudioCaptureGetMmapPosition() 946 capture->captureParam.frameCaptureMode.time in AudioCaptureGetMmapPosition() [all...] |
/kernel/linux/linux-5.10/tools/perf/ |
H A D | builtin-kvm.c | 32 #include <sys/time.h> 169 event->total.time = 0; in clear_events_cache_stats() 173 event->vcpu[j].time = 0; in clear_events_cache_stats() 265 kvm_stats->time += time_diff; in kvm_update_event_stats() 383 if (sample->time < time_begin) { in handle_end_event() 384 pr_debug("End time before begin time; skipping event.\n"); in handle_end_event() 388 time_diff = sample->time - time_begin; in handle_end_event() 396 sample->time, sample->pid, vcpu_record->vcpu_id, in handle_end_event() 445 return handle_begin_event(kvm, vcpu_record, &key, sample->time); in handle_kvm_event() [all...] |
/third_party/node/deps/openssl/openssl/ssl/ |
H A D | ssl_sess.c | 65 ss->calc_timeout = ss->time + ss->timeout; in ssl_session_calculate_timeout() 68 * overflow only needs to consider if |time| is positive in ssl_session_calculate_timeout() 70 ss->timeout_ovf = ss->time > 0 && ss->calc_timeout < ss->time; in ssl_session_calculate_timeout() 138 ss->time = time(NULL); in SSL_SESSION_new() 310 * complete in one iteration pretty much "most" of the time (btw: 649 if (sess_timedout(time(NULL), ret)) { in ssl_get_prev_session() 745 * the session to the SSL_SESSION_list at this time in SSL_CTX_add_session() 750 /* Adjust last used time, an in SSL_CTX_add_session() [all...] |
/third_party/skia/third_party/externals/angle2/src/tests/ |
H A D | capture_replay_tests.py | 39 import time namespace 147 start_time = time.time() 150 elapsed_time = time.time() - start_time 818 start_time = time.time() 919 # reminder of the wait time. Therefore, limit waiting by the number of 922 time.sleep(min(STATUS_MESSAGE_PERIOD, unfinished_jobs)) 925 end_time = time [all...] |
/drivers/peripheral/audio/hal/hdi_passthrough/include/ |
H A D | audio_internal.h | 152 struct AudioTimeStamp time; member 280 struct AudioTimeStamp time; member 478 int32_t AudioRenderGetRenderPosition(struct AudioRender *render, uint64_t *frames, struct AudioTimeStamp *time); 486 int32_t AudioRenderGetMmapPosition(AudioHandle handle, uint64_t *frames, struct AudioTimeStamp *time); 515 int32_t AudioCaptureGetCapturePosition(struct AudioCapture *capture, uint64_t *frames, struct AudioTimeStamp *time); 519 int32_t AudioCaptureGetMmapPosition(AudioHandle handle, uint64_t *frames, struct AudioTimeStamp *time);
|
/drivers/peripheral/audio/test/systemtest/hdi_service/common/render/src/ |
H A D | audio_idl_hdirender_attr_test.cpp | 537 struct AudioTimeStamp time = {}; in HWTEST_F() local 540 ret = render->GetMmapPosition(render, frames, &time); in HWTEST_F() 552 struct AudioTimeStamp *time = nullptr; in HWTEST_F() local 555 ret = render->GetMmapPosition(render, &frames, time); in HWTEST_F() 567 struct AudioTimeStamp time = {}; in HWTEST_F() local 571 ret = render->GetMmapPosition(renderNull, &frames, &time); in HWTEST_F()
|
/kernel/linux/linux-5.10/arch/sparc/kernel/ |
H A D | sys_sparc_64.c | 554 struct __kernel_old_timeval *tv = (void *)&txc.time; in SYSCALL_DEFINE1() 568 txc.time.tv_usec = tv->tv_usec; in SYSCALL_DEFINE1() 570 tv->tv_usec = txc.time.tv_usec; in SYSCALL_DEFINE1() 579 struct __kernel_old_timeval *tv = (void *)&txc.time; in SYSCALL_DEFINE2() 601 txc.time.tv_usec = tv->tv_usec; in SYSCALL_DEFINE2() 603 tv->tv_usec = txc.time.tv_usec; in SYSCALL_DEFINE2()
|
/kernel/linux/linux-6.6/arch/sparc/kernel/ |
H A D | sys_sparc_64.c | 554 struct __kernel_old_timeval *tv = (void *)&txc.time; in SYSCALL_DEFINE1() 568 txc.time.tv_usec = tv->tv_usec; in SYSCALL_DEFINE1() 570 tv->tv_usec = txc.time.tv_usec; in SYSCALL_DEFINE1() 579 struct __kernel_old_timeval *tv = (void *)&txc.time; in SYSCALL_DEFINE2() 601 txc.time.tv_usec = tv->tv_usec; in SYSCALL_DEFINE2() 603 tv->tv_usec = txc.time.tv_usec; in SYSCALL_DEFINE2()
|
/kernel/linux/linux-5.10/sound/pci/emu10k1/ |
H A D | emu10k1_callback.c | 19 unsigned int time; member 216 best[i].time = (unsigned int)-1; /* XXX MAX_?INT really */ in lookup_voices() 261 if (vp->time < bp->time) { in lookup_voices() 262 bp->time = vp->time; in lookup_voices()
|
/kernel/linux/linux-5.10/fs/nfsd/ |
H A D | nfsxdr.c | 116 * current server time". It's needed to make permissions in decode_sattr() 135 struct timespec64 time; in encode_fattr() local 176 time = stat->mtime; in encode_fattr() 177 lease_get_mtime(d_inode(dentry), &time); in encode_fattr() local 178 *p++ = htonl((u32) time.tv_sec); in encode_fattr() 179 *p++ = htonl(time.tv_nsec ? time.tv_nsec / 1000 : 0); in encode_fattr()
|
/kernel/linux/linux-5.10/kernel/time/ |
H A D | ntp.c | 5 * This code was mainly moved from kernel/timer.c and kernel/time.c 16 #include <linux/time.h> 62 /* time adjustment (nsecs): */ 65 /* pll time constant: */ 77 /* time at last adjustment (secs): */ 123 * Otherwise, reduce the offset by a fixed factor times the time constant. 177 /* PPS signal lost when either PPS time or in is_error_status() 183 * PPS time synchronization requested */ in is_error_status() 377 * Provides the time of the next leapsecond against CLOCK_REALTIME in 650 * reference time t in process_adj_status() [all...] |