Blender V4.5
time.cc File Reference
#include "BLI_time.h"
#include <sys/time.h>
#include <unistd.h>

Go to the source code of this file.

Functions

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

Function Documentation

◆ BLI_time_now_seconds()

double BLI_time_now_seconds ( void )

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 65 of file time.cc.

Referenced by annotation_draw_apply_event(), blender::deg::DepsgraphDebug::begin_graph_evaluation(), blender::draw::overlay::ModeTransfer::begin_sync(), 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(), image_view_zoom_init(), image_zoom_apply(), initFlyInfo(), initWalkInfo(), lib_override_library_main_resync_on_library_indirect_level(), 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::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(), blender::io::alembic::ScopeTimer::ScopeTimer(), 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(), stats_background(), 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(), wm_xr_session_events_dispatch(), and blender::io::alembic::ScopeTimer::~ScopeTimer().

◆ BLI_time_now_seconds_i()

long int BLI_time_now_seconds_i ( void )

◆ BLI_time_sleep_ms()

void BLI_time_sleep_ms ( int ms)

Platform-independent sleep function.

Parameters
msNumber of milliseconds to sleep

Definition at line 85 of file time.cc.

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