libAlgAudio  v1.99-440-g08538e5-dirty
The development library for AlgAudio framework.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AlgAudio::Timer Class Reference

#include <Timer.hpp>

Static Public Member Functions

static TimerHandle Schedule (float seconds, std::function< void()> f)
 
static void Trigger (void *param)
 

Detailed Description

This class provides time management mechanisms, such as timed calls.

Member Function Documentation

static TimerHandle AlgAudio::Timer::Schedule ( float  seconds,
std::function< void()>  f 
)
static

Calling schedule specifies an action that has to happen after some time has elapsed.

Parameters
secondsA floating point number specifying the number of seconds to wait before calling f.
fThe function to be called. It will be invoked by the main thread.
static void AlgAudio::Timer::Trigger ( void *  param)
static

Triggers a stored timer callback. Called by SDLMain when a timer event is received.


The documentation for this class was generated from the following file: