17#ifndef _FGE_TIMER_MANAGER_HPP_INCLUDED
18#define _FGE_TIMER_MANAGER_HPP_INCLUDED
20#include "FastEngine/fge_extern.hpp"
21#include "FastEngine/C_callback.hpp"
22#include "FastEngine/C_timer.hpp"
29using TimerShared = std::shared_ptr<fge::Timer>;
64FGE_API fge::timer::TimerShared
Create(fge::timer::TimerShared timer);
72FGE_API
bool Destroy(fge::timer::TimerShared
const& timer);
79FGE_API
bool Remove(std::string
const& timerName);
92FGE_API
bool Check(fge::timer::TimerShared
const& timer);
99FGE_API
bool Check(std::string
const& timerName);
114FGE_API fge::timer::TimerShared
Get(std::string
const& timerName);
FGE_API void Uninit()
Un-init the timer manager.
FGE_API void Notify()
Notify the timer manager thread generally used after adding/updating a timer.
FGE_API void RemoveAll()
Destroy all timers.
FGE_API bool Destroy(fge::timer::TimerShared const &timer)
Destroy a timer with the given pointer.
FGE_API fge::timer::TimerShared Create(fge::timer::TimerShared timer)
Add a new timer to be handled by the thread.
FGE_API std::size_t GetTimerSize()
Get the total number of timers.
FGE_API fge::timer::TimerShared Get(std::string const &timerName)
Get the timer pointer with the given name.
FGE_API bool Remove(std::string const &timerName)
Destroy a timer with the given name.
FGE_API void Init()
Init the timer manager.
FGE_API bool IsInit()
Check if the timer manager is initialized.
FGE_API bool Check(fge::timer::TimerShared const &timer)
Check if the given timer pointer exist in the manager.