Class: |
DimTimer |
Library: |
DIM |
|
Author: |
C. Gaspar |
|
Version: |
v1.0 |
Update :Thu Feb 11 15:52:46
1999 |
Descrition :
Utility Class - Implements Asynchronous TimeOut
Handling
Constructors :
DimTimer ( int time ) ; Start the Timer - parameter
time is number of seconds
DimTimer ( ) ;
Public Functions :
-
void start ( int time ) ; Start the Timer -
parameter time is number of seconds
-
void stop ( ) ; Stop the timer
-
virtual void timerHandler ( ) = 0;
Usage :
Example:
class Tim : public DimTimer
{
public:
Tim(int time)
{
start(time);
};
void timerHandler()
{
cout << "Timer
Expired" << endl;
}
};
Or:
class Tim : public DimTimer
{
public:
Tim(int time) : DimTimer(time) {};
void timerHandler()
{
cout << "Timer
Expired" << endl;
}
};
Last update : 02/19/99 12:49:03 by MkHelp
1.1.0