1#include <delta_time.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
18
19
21
22
23
24 ecs_os_sleep(0, 100 * 1000 * 1000);
26
27 ecs_os_sleep(0, 100 * 1000 * 1000);
29
31}
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.