Skip to content

time_system::timer

Paweł Waligóra edited this page May 5, 2024 · 3 revisions

Example Usage

#include<timer.h>
time_system::timer t; // declare timer object
t.events.subscribe([](){printf("hello world!\n");}); // add a function to call when timer finishes.
t.start(5.0f); // set timer for 5 seconds

for different ways to add and remove functions in time::timer::events refer to engine::event_subscription_list

Home

Git Workflow

Issues

Coding Rules

Skrypty-Tutorial

Useful resources

Game Structure

Code Structure

Clone this wiki locally