Table of Contents

 
SetTimeElapsed
 

Purpose

Maually sets an amount of elapsed time

 

Protoype

void CTimerMngr::SetTimeElapsed (string str_timer, int i_new_elapse)
 

Parameters

timer the ID of the timer to set
new_elapse the new elapsed time in milliseconds
 

Description

This function sets a new elapsed time for the timer object, regardless of what the old one was.

 

Use

CTimerMngr timer;
// set elapsed time specifically to 2335
timer.SetElapsedTime("my_timer", 2335);
 

Prev: SetAlarm