Table of Contents

 
NumTimers
 

Purpose

Finds the number of timers in the manager

 

Protoype

int CTimerMngr::NumTimers (int i_ID = -1)
 

Parameters

ID the ID of the specific objects to return the number of
 

Description

This function can return the total number of timers in the manager or the total number of timers for a specific object, like a CTextMngr or CSoundMngr. For more on timer object IDs, see RemoveAll().

 

Use

CTimerMngr timer;
// get total timer count
int i_num_timers = timer.NumTimers();
// get the total number of CText timers
int i_num_ctext_timers = timer.NumTimers(CTEXT_ID);
 

Prev: GetAlarm
Next: RemoveAll