#include <Timer.h>
Definition at line 10 of file Timer.h.
 
◆ Timer() [1/3]
  
  | 
        
          | API::Timer::Timer | ( | const Timer & |  | ) |  |  | delete | 
 
 
◆ Timer() [2/3]
  
  | 
        
          | API::Timer::Timer | ( | Timer && |  | ) |  |  | delete | 
 
 
◆ Timer() [3/3]
◆ ~Timer()
◆ DelayExecute()
template<typename Func , typename... Args> 
  
  | 
        
          | void API::Timer::DelayExecute | ( | const Func & | callback, |  
          |  |  | int | delay, |  
          |  |  | Args &&... | args ) |  | inline | 
 
Executes function after X seconds. 
- Template Parameters
- 
  
    | Func | Callback function type |  | Args | Callback arguments types |  
 
- Parameters
- 
  
    | callback | Callback function |  | delay | Delay in seconds |  | args | Callback arguments |  
 
Definition at line 29 of file Timer.h.
 
 
◆ DelayExecuteInternal()
  
  | 
        
          | void API::Timer::DelayExecuteInternal | ( | const std::function< void()> & | callback, |  
          |  |  | int | delay_seconds ) |  | private | 
 
 
◆ Get()
  
  | 
        
          | Timer & API::Timer::Get | ( |  | ) |  |  | static | 
 
 
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ RecurringExecute()
template<typename Func , typename... Args> 
  
  | 
        
          | void API::Timer::RecurringExecute | ( | const Func & | callback, |  
          |  |  | int | execution_interval, |  
          |  |  | int | execution_counter, |  
          |  |  | bool | async, |  
          |  |  | Args &&... | args ) |  | inline | 
 
Executes function every X seconds. 
- Template Parameters
- 
  
    | Func | Callback function type |  | Args | Callback arguments types |  
 
- Parameters
- 
  
    | callback | Callback function |  | execution_interval | Delay between executions in seconds |  | execution_counter | Amount of times to execute function, -1 for unlimited |  | async | If true, function will be executed in the new thread |  | args | Callback arguments |  
 
Definition at line 45 of file Timer.h.
 
 
◆ RecurringExecuteInternal()
  
  | 
        
          | void API::Timer::RecurringExecuteInternal | ( | const std::function< void()> & | callback, |  
          |  |  | int | execution_interval, |  
          |  |  | int | execution_counter, |  
          |  |  | bool | async ) |  | private | 
 
 
◆ Update()
  
  | 
        
          | void API::Timer::Update | ( |  | ) |  |  | private | 
 
 
◆ timer_funcs_
  
  | 
        
          | std::vector<std::unique_ptr<TimerFunc> > API::Timer::timer_funcs_ |  | private | 
 
 
The documentation for this class was generated from the following files:
- C:/Users/lachl/Downloads/ArkServerAPI_NEW/ASE/AseApi-main/version/Core/Public/Timer.h
- C:/Users/lachl/Downloads/ArkServerAPI_NEW/ASE/AseApi-main/version/Core/Private/Tools/Timer.cpp