Table of Contents

 
SetAlarm
 

Purpose

Sets a new alarm for the timer

 

Protoype

void CTimerMngr::SetAlarm (string str_timer, int i_new_alarm)
 

Parameters

timer the ID of the timer to set
new_alarm the new timer alarm in milliseconds
 

Description

This function lets you set a new alarm value for a timer. The new alarm value must be in milliseconds and the timer does not have to be stopped in order for the alarm to be reset.

 

Use

CTimerMngr timer;
timer.SetAlarm("my_timer", 2000);
 

Prev: ResetTimer