Function ecs_measure_frame_time
Synopsis
#include <include/flecs.h>
FLECS_API void ecs_measure_frame_time(ecs_world_t *world, bool enable)
Description
Measure frame time. Frame time measurements measure the total time passed in a single frame, and how much of that time was spent on systems and on merging.
Frame time measurements add a small constant-time overhead to an application. When an application sets a target FPS, frame time measurements are enabled by default.
- Parameters
world
- The world.enable
- Whether to enable or disable frame time measuring.
Source
Line 753 in include/flecs.h.