1#include <target_fps.h>
2#include <stdio.h>
3
5
6 printf(
"delta_time: %f\n", (
double)it->
delta_time);
7}
8
9int main(int argc, char *argv[]) {
11
12
13
14
16
17
19
20
21 for (int i = 0; i < 5; i ++) {
22
23
24
25
26
27
28
29
30
31
32
34 }
35
37}
FLECS_API void ecs_set_target_fps(ecs_world_t *world, ecs_ftime_t fps)
Set target frames per second (FPS) for an application.
FLECS_API bool ecs_progress(ecs_world_t *world, ecs_ftime_t delta_time)
Progress a world.
#define ECS_SYSTEM(world, id, phase,...)
Declare and define a system.
struct ecs_world_t ecs_world_t
A world is the container for all ECS data and supporting features.
int ecs_fini(ecs_world_t *world)
Delete a world.
ecs_world_t * ecs_init_w_args(int argc, char *argv[])
Create a new world with arguments.
float delta_time
Time elapsed since last frame.