Sets or changes a timer interval and starts the timer.
int set(int internal);int set(long interval);
Parameter |
Description |
---|---|
interval |
The timer interval. Use an integer to set the time in seconds. Use a long datatype to set the time in milliseconds |
Integer. Returns 1 for success, and 0 for failure.
Pointer to object |
Object |
---|---|
|
|
ptimer1->set(0);
//in milliseconds:
long m_sec;
m_sec = 500;
ptimer1->set(m_sec);
//in seconds:
int sec1;
sec1 = 2;
ptimer1->set(sec1);
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |