Public Member Functions | ||||
NPLTimer (const string &nplFile, const string &sCode, float fInterval) | ||||
| ||||
NPLTimer (const string &nplFile, const string &sCode, DWORD dwInterval) | ||||
| ||||
void | Change (int dueTime, int period) | |||
Changes the start time and the interval between method invocations for a timer, using 32-bit signed integers to measure time intervals. | ||||
Public Attributes | ||||
string | m_nplFile | |||
string | m_sCode | |||
DWORD | m_nInterval | |||
DWORD | m_lastTick |
void NPL::NPLTimer::Change | ( | int | dueTime, | |
int | period | |||
) |
Changes the start time and the interval between method invocations for a timer, using 32-bit signed integers to measure time intervals.
nIDEvent,: | Specifies the timer to be destroyed.For nIDEvent<=0, they are reserved for internal uses can not be killed by this function. This value must be the same as the nIDEvent value passed to the SetTimer function that created the timer. | |
dueTime,: | The amount of time to delay before the invoking the callback method specified when the Timer was constructed, in milliseconds. Specify zero (0) to restart the timer immediately. | |
period:The | time interval between invocations of the callback method specified when the Timer was constructed, in milliseconds. |