Home
last modified time | relevance | path

Searched refs:cur_time (Results 1 – 25 of 28) sorted by relevance

12

/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/
D8-1.c58 clock_t st_time, cur_time; in main() local
77 cur_time = times(&parent_tms); in main()
79 if (cur_time == (clock_t) - 1) in main()
81 } while ((cur_time - st_time) < sysconf(_SC_CLK_TCK)); in main()
87 (long)(cur_time - st_time), in main()
102 cur_time = times(&child_tms); in main()
104 if (cur_time == (clock_t) - 1) in main()
113 cur_time = times(&child_tms); in main()
115 if (cur_time == -1) in main()
133 cur_time = times(&parent_tms); in main()
[all …]
/third_party/ltp/testcases/kernel/controllers/cpuctl/
Dcpuctl_latency_check_task.c78 struct timeval prev_time, cur_time; in main() local
116 if (gettimeofday(&cur_time, NULL) == -1) in main()
120 actual_s = cur_time.tv_sec - prev_time.tv_sec; in main()
121 actual_us = cur_time.tv_usec - prev_time.tv_usec; in main()
/third_party/ltp/lib/
Dtst_timer.c42 struct timespec cur_time; in tst_timer_expired_ms() local
44 if (tst_clock_gettime(clock_id, &cur_time)) in tst_timer_expired_ms()
47 return tst_timespec_diff_ms(cur_time, start_time) >= ms; in tst_timer_expired_ms()
/third_party/gstreamer/gstplugins_good/gst/debugutils/
Dcpureport.c105 GstClockTime cur_time; in gst_cpu_report_transform_ip() local
111 cur_time = g_get_real_time () * GST_USECOND; in gst_cpu_report_transform_ip()
117 time_taken = cur_time - filter->last_time; in gst_cpu_report_transform_ip()
125 filter->last_time = cur_time; in gst_cpu_report_transform_ip()
Dprogressreport.c409 gint64 cur_time; in gst_progress_report_transform_ip() local
411 cur_time = g_get_real_time () / G_USEC_PER_SEC; in gst_progress_report_transform_ip()
417 need_update = (cur_time - filter->last_report_s) >= filter->update_freq; in gst_progress_report_transform_ip()
422 gst_progress_report_report (filter, cur_time, buf); in gst_progress_report_transform_ip()
424 filter->last_report_s = cur_time; in gst_progress_report_transform_ip()
/third_party/ffmpeg/libavdevice/
Doss_dec.c74 int64_t cur_time; in audio_read_packet() local
90 cur_time = av_gettime(); in audio_read_packet()
96 cur_time -= (bdelay * 1000000LL) / (s->sample_rate * s->channels); in audio_read_packet()
99 pkt->pts = cur_time; in audio_read_packet()
Dsndio_dec.c62 int64_t bdelay, cur_time; in audio_read_packet() local
78 cur_time = av_gettime(); in audio_read_packet()
83 pkt->pts = cur_time - ((bdelay * 1000000) / in audio_read_packet()
/third_party/mesa3d/src/gallium/drivers/r600/
Dr600_gpu_load.c119 int64_t cur_time, last_time = os_time_get(); in r600_gpu_load_thread() local
127 cur_time = os_time_get(); in r600_gpu_load_thread()
130 cur_time)) in r600_gpu_load_thread()
136 last_time = cur_time; in r600_gpu_load_thread()
/third_party/gstreamer/gstplugins_base/tests/examples/seek/
Dscrubby.c66 static GstClockTime cur_time; variable
209 cur_time = -1; in do_seek()
219 prev_time = cur_time; in do_seek()
224 cur_time = g_get_real_time () * GST_USECOND; in do_seek()
230 GST_TIME_ARGS (cur_time)); in do_seek()
234 diff = cur_time - prev_time; in do_seek()
/third_party/mbedtls/library/
Dssl_cookie.c294 unsigned long cur_time, cookie_time; in mbedtls_ssl_cookie_check() local
364 cur_time = (unsigned long) mbedtls_time(NULL); in mbedtls_ssl_cookie_check()
366 cur_time = ctx->serial; in mbedtls_ssl_cookie_check()
374 if (ctx->timeout != 0 && cur_time - cookie_time > ctx->timeout) { in mbedtls_ssl_cookie_check()
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_gpu_load.c135 int64_t cur_time, last_time = os_time_get(); in si_gpu_load_thread() local
143 cur_time = os_time_get(); in si_gpu_load_thread()
145 if (os_time_timeout(last_time, last_time + period_us, cur_time)) in si_gpu_load_thread()
151 last_time = cur_time; in si_gpu_load_thread()
/third_party/gstreamer/gstplugins_bad/gst/videoframe_audiolevel/
Dgstvideoframe-audiolevel.c547 GstClockTime timestamp, cur_time; in gst_videoframe_audiolevel_asink_chain() local
670 cur_time = in gst_videoframe_audiolevel_asink_chain()
675 GST_TIME_ARGS (cur_time)); in gst_videoframe_audiolevel_asink_chain()
683 if (cur_time < *vt0) { in gst_videoframe_audiolevel_asink_chain()
685 gst_util_uint64_scale (*vt0 - cur_time, rate, GST_SECOND); in gst_videoframe_audiolevel_asink_chain()
693 cur_time = *vt0; in gst_videoframe_audiolevel_asink_chain()
704 cur_time = in gst_videoframe_audiolevel_asink_chain()
709 if (*vt1 > cur_time) { in gst_videoframe_audiolevel_asink_chain()
712 cur_time, rate, GST_SECOND); in gst_videoframe_audiolevel_asink_chain()
/third_party/mesa3d/src/microsoft/vulkan/
Ddzn_sync.c190 uint64_t cur_time = os_time_get_nano(); in dzn_sync_wait() local
192 abs_timeout_ns > cur_time ? abs_timeout_ns - cur_time : 0; in dzn_sync_wait()
/third_party/skia/third_party/externals/imgui/examples/libs/usynergy/
DuSynergy.c503 uint32_t cur_time = context->m_getTimeFunc(); in sUpdateContext() local
507 if ((cur_time - context->m_lastMessageTime) > USYNERGY_IDLE_TIMEOUT) in sUpdateContext()
511 context->m_lastMessageTime = cur_time; in sUpdateContext()
/third_party/gstreamer/gstreamer/plugins/elements/
Dgstmultiqueue.c158 GstClockTime cur_time; member
476 ret = sq->cur_time; in gst_multiqueue_pad_get_current_level_time()
1144 "time", G_TYPE_UINT64, sq->cur_time, NULL); in gst_multi_queue_get_stats()
1495 sq->cur_time = 0; in gst_single_queue_flush()
1531 size.bytes, sq->max_size.bytes, sq->cur_time, sq->max_size.time); in get_buffering_level()
1541 gst_util_uint64_scale (sq->cur_time, in get_buffering_level()
1565 if (buffering_time > sq->cur_time) { in update_buffering_time()
1566 buffering_time = sq->cur_time; in update_buffering_time()
1906 sq->cur_time = sink_time - src_time; in update_time_level()
1908 sq->cur_time = 0; in update_time_level()
[all …]
/third_party/mesa3d/src/gallium/frontends/wgl/
Dstw_framebuffer.c659 int64_t cur_time = os_time_get_nano() / 1000; in wait_swap_interval() local
663 int64_t delta = cur_time - fb->prev_swap_time; in wait_swap_interval()
678 fb->prev_swap_time = cur_time; in wait_swap_interval()
/third_party/mbedtls/programs/test/
Dudp_proxy.c414 unsigned const cur_time = elapsed_time(); in ctx_buffer_time_remaining() local
420 if (cur_time - buf->packet_lifetime >= opt.pack) { in ctx_buffer_time_remaining()
424 return opt.pack - (cur_time - buf->packet_lifetime); in ctx_buffer_time_remaining()
/third_party/ffmpeg/fftools/
Dffmpeg.c1702 static void print_report(int is_last_report, int64_t timer_start, int64_t cur_time) in print_report() argument
1726 last_time = cur_time; in print_report()
1728 if (((cur_time - last_time) < stats_period && !first_report) || in print_report()
1731 last_time = cur_time; in print_report()
1734 t = (cur_time-timer_start) / 1000000.0; in print_report()
3980 static int check_keyboard_interaction(int64_t cur_time) in check_keyboard_interaction() argument
3987 if(cur_time - last_time >= 100000 && !run_as_daemon){ in check_keyboard_interaction()
3989 last_time = cur_time; in check_keyboard_interaction()
4792 int64_t cur_time= av_gettime_relative(); in transcode() local
4796 if (check_keyboard_interaction(cur_time) < 0) in transcode()
[all …]
/third_party/elfutils/debuginfod/
Ddebuginfod-client.c1380 struct timespec start_time, cur_time; in debuginfod_query_server() local
1395 if (clock_gettime(CLOCK_MONOTONIC_RAW, &cur_time) == -1) in debuginfod_query_server()
1400 delta = cur_time.tv_sec - start_time.tv_sec; in debuginfod_query_server()
/third_party/ffmpeg/libavfilter/
Davf_showcqt.c1133 int64_t last_time, cur_time; in plot_cqt() local
1136 cur_time = av_gettime_relative(); \ in plot_cqt()
1137 t += cur_time - last_time; \ in plot_cqt()
1138 last_time = cur_time in plot_cqt()
/third_party/f2fs-tools/fsck/
Dmount.c1029 u32 prev_time, cur_time, time_diff; in validate_super_block() local
1035 cur_time = (u32)t.tv_sec; in validate_super_block()
1039 cur_time, prev_time); in validate_super_block()
1043 if (prev_time != 0 && cur_time > prev_time) { in validate_super_block()
1044 time_diff = cur_time - prev_time; in validate_super_block()
1055 *ver_ts_ptr = cpu_to_le32(cur_time); in validate_super_block()
/third_party/ffmpeg/libavformat/
Ddashenc.c679 int64_t cur_time = 0; in output_segment_list() local
685 if (i == start_index || seg->time != cur_time) { in output_segment_list()
686 cur_time = seg->time; in output_segment_list()
698 cur_time += (1 + repeat) * seg->duration; in output_segment_list()
Ddashdec.c287 static int64_t calc_next_seg_no_from_timelines(struct representation *pls, int64_t cur_time) in calc_next_seg_no_from_timelines() argument
298 if (start_time > cur_time) in calc_next_seg_no_from_timelines()
304 if (start_time > cur_time) in calc_next_seg_no_from_timelines()
/third_party/gstreamer/gstplugins_bad/ext/dash/
Dgstdashdemux.c2554 GstDateTime *cur_time; in gst_dash_demux_stream_get_fragment_waiting_time() local
2556 cur_time = in gst_dash_demux_stream_get_fragment_waiting_time()
2561 gst_mpd_client_calculate_time_difference (cur_time, in gst_dash_demux_stream_get_fragment_waiting_time()
2564 gst_date_time_unref (cur_time); in gst_dash_demux_stream_get_fragment_waiting_time()
/third_party/gstreamer/gstplugins_bad/ext/resindvd/
Dresindvdsrc.c729 gint64 cur_time; in rsn_dvdsrc_do_still() local
732 cur_time = g_get_monotonic_time (); in rsn_dvdsrc_do_still()
733 remain = (end_time - cur_time) * GST_USECOND; in rsn_dvdsrc_do_still()

12