Home
last modified time | relevance | path

Searched refs:G_USEC_PER_SEC (Results 1 – 25 of 95) sorted by relevance

1234

/third_party/glib/glib/
Dgtimer.c275 request.tv_sec = microseconds / G_USEC_PER_SEC; in g_usleep()
276 request.tv_nsec = 1000 * (microseconds % G_USEC_PER_SEC); in g_usleep()
297 g_return_if_fail (time_->tv_usec >= 0 && time_->tv_usec < G_USEC_PER_SEC); in g_time_val_add()
301 time_->tv_usec += microseconds % G_USEC_PER_SEC; in g_time_val_add()
302 time_->tv_sec += microseconds / G_USEC_PER_SEC; in g_time_val_add()
303 if (time_->tv_usec >= G_USEC_PER_SEC) in g_time_val_add()
305 time_->tv_usec -= G_USEC_PER_SEC; in g_time_val_add()
312 time_->tv_usec -= microseconds % G_USEC_PER_SEC; in g_time_val_add()
313 time_->tv_sec -= microseconds / G_USEC_PER_SEC; in g_time_val_add()
316 time_->tv_usec += G_USEC_PER_SEC; in g_time_val_add()
[all …]
Dgtimer.h42 #define G_USEC_PER_SEC 1000000 macro
Dgrand.c259 seed[0] = now_us / G_USEC_PER_SEC; in g_rand_new()
260 seed[1] = now_us % G_USEC_PER_SEC; in g_rand_new()
Dgasyncqueue.c608 ((gint64) end_time->tv_sec * G_USEC_PER_SEC + end_time->tv_usec - g_get_real_time ()); in g_async_queue_timed_pop()
653 ((gint64) end_time->tv_sec * G_USEC_PER_SEC + end_time->tv_usec - g_get_real_time ()); in g_async_queue_timed_pop_unlocked()
/third_party/glib/glib/tests/
Dasyncqueue.c187 val = g_async_queue_timeout_pop (q, G_USEC_PER_SEC / 10); in test_async_queue_timed()
192 g_assert_cmpint (diff, >=, G_USEC_PER_SEC / 10); in test_async_queue_timed()
196 g_assert_cmpint (diff, <, 2 * G_USEC_PER_SEC); in test_async_queue_timed()
200 g_time_val_add (&tv, G_USEC_PER_SEC / 10); in test_async_queue_timed()
206 g_assert_cmpint (diff, >=, G_USEC_PER_SEC / 10); in test_async_queue_timed()
207 g_assert_cmpint (diff, <, 2 * G_USEC_PER_SEC); in test_async_queue_timed()
211 g_time_val_add (&tv, G_USEC_PER_SEC / 10); in test_async_queue_timed()
219 g_assert_cmpint (diff, >=, G_USEC_PER_SEC / 10); in test_async_queue_timed()
220 g_assert_cmpint (diff, <, 2 * G_USEC_PER_SEC); in test_async_queue_timed()
Dgpoll.c304 g_usleep (G_USEC_PER_SEC / 1000); in test_gpoll()
356 g_usleep (G_USEC_PER_SEC / 1000); in test_gpoll()
406 g_usleep (G_USEC_PER_SEC / 1000); in test_gpoll()
459 g_usleep (G_USEC_PER_SEC / 1000); in test_gpoll()
513 g_usleep (G_USEC_PER_SEC / 1000); in test_gpoll()
566 g_usleep (G_USEC_PER_SEC / 1000); in test_gpoll()
Dtimer.c132 g_assert_cmpint (time.tv_usec, ==, G_USEC_PER_SEC - 490); in test_timeval_add()
289 val.tv_usec = G_USEC_PER_SEC - 1; in test_timeval_to_iso8601_overflow()
/third_party/gstreamer/gstplugins_base/tests/icles/playback/
Dtest4.c69 g_usleep (2 * G_USEC_PER_SEC); in main()
79 g_usleep (2 * G_USEC_PER_SEC); in main()
89 g_usleep (2 * G_USEC_PER_SEC); in main()
99 g_usleep (2 * G_USEC_PER_SEC); in main()
/third_party/glib/tests/
Dthread-test.c40 g_usleep (G_USEC_PER_SEC / 5); in test_g_mutex()
85 g_usleep (G_USEC_PER_SEC / 5); in test_g_static_rec_mutex()
96 g_usleep (G_USEC_PER_SEC / 5); in test_g_static_rec_mutex()
159 g_usleep (G_USEC_PER_SEC / 5); in test_g_static_private_thread()
169 g_usleep (G_USEC_PER_SEC / 5); in test_g_static_private_thread()
182 g_usleep (G_USEC_PER_SEC / 5); in test_g_static_private_thread()
205 g_usleep (G_USEC_PER_SEC / 5); in test_g_static_private()
289 g_usleep (G_USEC_PER_SEC * 5); in test_g_static_rw_lock()
Dthreadpool-test.c70 max_idle_time = 10 * G_USEC_PER_SEC; in test_thread_functions()
106 g_usleep (G_USEC_PER_SEC); in test_thread_stop_unused()
119 g_usleep (G_USEC_PER_SEC); in test_thread_stop_unused()
/third_party/gstreamer/gstreamer/gst/
Dgstdatetime.c348 G_USEC_PER_SEC) / 3600.0; in gst_date_time_get_time_zone_offset()
477 gint64 secs = usecs / G_USEC_PER_SEC; in gst_date_time_new_from_unix_epoch_local_time_usecs()
478 gint64 usec_part = usecs % G_USEC_PER_SEC; in gst_date_time_new_from_unix_epoch_local_time_usecs()
483 datetime = g_date_time_add_seconds (dt, (gdouble) usec_part / G_USEC_PER_SEC); in gst_date_time_new_from_unix_epoch_local_time_usecs()
507 gint64 secs = usecs / G_USEC_PER_SEC; in gst_date_time_new_from_unix_epoch_utc_usecs()
508 gint64 usec_part = usecs % G_USEC_PER_SEC; in gst_date_time_new_from_unix_epoch_utc_usecs()
513 datetime = g_date_time_add_seconds (dt, (gdouble) usec_part / G_USEC_PER_SEC); in gst_date_time_new_from_unix_epoch_utc_usecs()
/third_party/gstreamer/gstreamer/tests/check/gst/
Dgstevent.c633 g_usleep (G_USEC_PER_SEC / 100); in test_event()
644 g_usleep (G_USEC_PER_SEC / 100); in test_event()
703 fail_unless ((got_event_time - sent_event_time) < G_USEC_PER_SEC / 2, in GST_START_TEST()
708 fail_unless ((got_event_time - sent_event_time) < G_USEC_PER_SEC / 2, in GST_START_TEST()
713 fail_unless ((got_event_time - sent_event_time) < G_USEC_PER_SEC / 2, in GST_START_TEST()
719 fail_unless ((got_event_time - sent_event_time) < G_USEC_PER_SEC / 2, in GST_START_TEST()
724 fail_unless ((got_event_time - sent_event_time) < G_USEC_PER_SEC / 2, in GST_START_TEST()
731 fail_unless ((got_event_time - sent_event_time) >= G_USEC_PER_SEC / 2, in GST_START_TEST()
736 fail_unless ((got_event_time - sent_event_time) >= G_USEC_PER_SEC / 2, in GST_START_TEST()
Dgstsystemclock.c325 g_usleep (G_USEC_PER_SEC); in GST_START_TEST()
370 g_usleep (G_USEC_PER_SEC); in GST_START_TEST()
/third_party/gstreamer/gstplugins_bad/tests/check/elements/
Dnetsim.c16 g_usleep (G_USEC_PER_SEC * 1); in GST_START_TEST()
42 g_usleep (G_USEC_PER_SEC * 1); in GST_START_TEST()
/third_party/libsoup/tests/
Dhsts-test.c197 g_usleep (3 * G_USEC_PER_SEC); in do_hsts_expire_test()
223 g_usleep (3 * G_USEC_PER_SEC); in do_hsts_replace_test()
234 g_usleep (2 * G_USEC_PER_SEC); in do_hsts_update_test()
236 g_usleep (2 * G_USEC_PER_SEC); in do_hsts_update_test()
322 g_usleep(2 * G_USEC_PER_SEC); in do_hsts_multiple_headers_test()
/third_party/glib/gio/
Dgio-tool-move.c58 if (tv - previous_time < (G_USEC_PER_SEC / 5) && in show_progress()
65 MAX ((tv - start_time) / G_USEC_PER_SEC, 1)); in show_progress()
Dgio-tool-copy.c65 if (tv - previous_time < (G_USEC_PER_SEC / 5) && in show_progress()
72 MAX ((tv - start_time) / G_USEC_PER_SEC, 1)); in show_progress()
/third_party/gstreamer/gstplugins_bad/sys/dvb/
Dcamdevice.c127 g_usleep (G_USEC_PER_SEC / 10); in cam_device_open()
145 g_usleep (G_USEC_PER_SEC / 5); in cam_device_open()
/third_party/glib/gio/tests/
Dg-file-info.c182 g_assert_cmpint (ts, <, G_USEC_PER_SEC); in test_g_file_info_modification_time()
185 dt_new = g_date_time_add (dt_usecs, G_USEC_PER_SEC + 50); in test_g_file_info_modification_time()
620 dt2 = g_date_time_add (dt, G_USEC_PER_SEC / 100 * 200); in test_internal_enhanced_stdio()
640 g_assert_cmpint (ts, <, G_USEC_PER_SEC / 100 * 300); in test_internal_enhanced_stdio()
657 one_sec_before_systemtime_limit + G_USEC_PER_SEC * 2); in test_internal_enhanced_stdio()
/third_party/gstreamer/gstreamer/libs/gst/check/
Dgstharness.h369 gst_harness_stress_statechange_start_full (h, G_USEC_PER_SEC / 100)
453 gst_harness_stress_property_start_full (h, n, v, G_USEC_PER_SEC / 1000)
462 gst_harness_stress_requestpad_start_full (h, t, n, c, r, G_USEC_PER_SEC / 100)
/third_party/gstreamer/gstplugins_good/gst/debugutils/
Dprogressreport.c393 gint64 cur_time_s = g_get_real_time () / G_USEC_PER_SEC; in gst_progress_report_sink_event()
411 cur_time = g_get_real_time () / G_USEC_PER_SEC; in gst_progress_report_transform_ip()
439 g_get_real_time () / G_USEC_PER_SEC; in gst_progress_report_start()
/third_party/gstreamer/gstreamer/tests/benchmarks/
Dgstclockstress.c85 g_usleep (G_USEC_PER_SEC * 5); in main()
/third_party/gstreamer/gstplugins_base/tests/examples/gl/qt/qglwidgetvideooverlay/
Dpipeline.cpp186 if ((current_time / G_USEC_PER_SEC - last_sec) >= 1) in drawCallback()
190 last_sec = current_time / G_USEC_PER_SEC; in drawCallback()
/third_party/gstreamer/gstplugins_base/tests/examples/gl/qt/mousevideooverlay/
Dpipeline.cpp201 if ((current_time / G_USEC_PER_SEC - last_sec) >= 1) in drawCallback()
205 last_sec = current_time / G_USEC_PER_SEC; in drawCallback()
/third_party/gstreamer/gstplugins_bad/gst/audiolatency/
Dgstaudiolatency.c172 G_USEC_PER_SEC, 0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); in gst_audiolatency_class_init()
177 G_USEC_PER_SEC, 0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); in gst_audiolatency_class_init()

1234