Function time

Synopsis

#include <include/flecs/addons/cpp/world.hpp>

ecs_ftime_t time() const

Description

Get current simulation time.

Source

Lines 172-175 in include/flecs/addons/cpp/world.hpp.

ecs_ftime_t time() const {
    const ecs_world_info_t *stats = ecs_get_world_info(m_world);
    return stats->world_time_total;
}