Blender V5.0
BLI_time.h File Reference

Platform independent time functions. More...

Go to the source code of this file.

Functions

double BLI_time_now_seconds (void)
long int BLI_time_now_seconds_i (void)
void BLI_time_sleep_ms (int ms)
void BLI_time_sleep_precise_us (int us)

Detailed Description

Platform independent time functions.

Definition in file BLI_time.h.

Function Documentation

◆ BLI_time_now_seconds()

double BLI_time_now_seconds ( void )
extern

Return an indication of time, expressed as seconds since some fixed point. Successive calls are guaranteed to generate values greater than or equal to the last call.

Definition at line 113 of file time.cc.

Referenced by annotation_draw_apply_event(), area_animate_highlight_cb(), area_join_dock_cb(), area_join_draw_cb(), area_join_init(), area_join_update_data(), area_move_draw_cb(), area_move_exit(), area_move_init(), area_move_out_draw_cb(), blender::deg::DepsgraphDebug::begin_graph_evaluation(), BKE_image_free_old_gputextures(), BKE_partdeflect_new(), BKE_ptcache_bake(), BLI_thread_queue_pop_timeout(), blo_do_versions_pre250(), blo_read_file_internal(), BM_mesh_bevel(), bpy_context_clear(), bpy_context_set(), BPY_python_end(), blender::deg::AbstractBuilderPipeline::build(), button_activate_init(), do_render_full_pipeline(), do_write_image_or_movie(), dpaint_bake_endjob(), dpaint_bake_startjob(), DRW_cache_free_old_batches(), blender::draw::DRW_create_subdivision(), EDBM_automerge_and_split(), blender::deg::DepsgraphDebug::end_graph_evaluation(), fluid_bake_endjob(), fluid_bake_startjob(), fluid_free_endjob(), fluid_free_startjob(), flyApply(), flyEvent(), GPUPass::GPUPass(), image_view_zoom_init(), image_zoom_apply(), initFlyInfo(), initWalkInfo(), lib_override_library_main_resync_on_library_indirect_level(), blender::eevee::Instance::light_bake_irradiance(), lineart_main_add_triangles(), lineart_main_load_geometries(), lineart_main_make_enclosed_shapes(), lineart_main_try_generate_shadow_v3(), make_renderinfo_string(), minimize_stretch_init(), minimize_stretch_iteration(), minimize_stretch_modal(), MOD_lineart_compute_feature_lines_v3(), blender::ed::object::mode_transfer_overlay_current_state(), blender::bke::node_unique_id(), blender::ed::object::object_overlay_mode_transfer_animation_start(), blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_begin(), panel_handle_data_ensure(), blender::bke::pbvh::pbvh_bmesh_collapse_short_edges(), blender::bke::pbvh::pbvh_bmesh_subdivide_long_edges(), blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::process_extension_sample(), progress_tooltip_func(), pupdate_time(), RE_InitState(), redraw_timer_exec(), blender::render::hydra::FinalEngine::render(), blender::render::hydra::ViewportEngine::render(), RNA_struct_override_matches(), screen_animate_area_highlight(), blender::ed::sculpt_paint::dyntopo::sculpt_detail_flood_fill_exec(), blender::ed::sculpt_paint::mask::sculpt_mask_init_exec(), setup_app_data(), SIM_mass_spring_solve_velocities(), softbody_step(), blender::bke::subdiv::stats_begin(), blender::bke::subdiv::stats_end(), text_line_number_invoke(), track_markers_startjob(), blender::ed::transform::transform_snap_mixed_apply(), ui_block_open_end(), ui_do_animate(), ui_mouse_motion_towards_check(), ui_mouse_motion_towards_init_ex(), UI_pie_menu_end(), UI_view2d_edge_pan_apply(), UI_view2d_edge_pan_reset(), GPUPassCache::update(), view_zoom_apply(), view_zoom_init(), view_zoomdrag_apply(), view_zoomdrag_invoke(), viewzoom_invoke_impl(), viewzoom_scale_value(), walkApply(), walkEvent(), WM_event_timer_add(), WM_event_timer_add_notifier(), WM_file_read(), WM_jobs_start(), wm_jobs_timer(), WM_tooltip_clear(), wm_window_timers_process(), wm_xr_fly_init(), wm_xr_navigation_fly_modal(), and wm_xr_session_events_dispatch().

◆ BLI_time_now_seconds_i()

long int BLI_time_now_seconds_i ( void )
extern

◆ BLI_time_sleep_ms()

void BLI_time_sleep_ms ( int ms)

Platform-independent sleep function.

Parameters
msNumber of milliseconds to sleep

Definition at line 133 of file time.cc.

Referenced by blender::gpu::present(), blender::gpu::MTLStorageBuf::read(), blender::eevee::LightBake::run(), track_markers_startjob(), and wm_main_playanim_intern().

◆ BLI_time_sleep_precise_us()

void BLI_time_sleep_precise_us ( int us)

Platform-independent high-resolution sleep function. Using this function can have advantages over

See also
BLI_time_sleep_ms on Windows due to a default non-precise sleep resolution of 15.25ms.
Parameters
usNumber of microseconds to sleep

Definition at line 143 of file time.cc.

Referenced by wm_window_events_process().