#include <OS.h>
Collaboration diagram for ACE_Countdown_Time:
Public Methods | |
ACE_Countdown_Time (ACE_Time_Value *max_wait_time) | |
Cache the <max_wait_time> and call <start>. | |
~ACE_Countdown_Time (void) | |
Call <stop>. | |
int | start (void) |
Cache the current time and enter a start state. | |
int | stop (void) |
Subtract the elapsed time from max_wait_time_ and enter a stopped state. | |
int | update (void) |
Calls stop and then start. max_wait_time_ is modified by the call to stop. | |
Private Attributes | |
ACE_Time_Value* | max_wait_time_ |
ACE_Time_Value | start_time_ |
Beginning of the start time. | |
int | stopped_ |
Keeps track of whether we've already been stopped. |
This class has a side-effect on the <max_wait_time> -- every time the <stop> method is called the <max_wait_time> is updated.
|
Cache the <max_wait_time> and call <start>.
|
|
Call <stop>.
|
|
Cache the current time and enter a start state.
|
|
Subtract the elapsed time from max_wait_time_ and enter a stopped state.
|
|
Calls stop and then start. max_wait_time_ is modified by the call to stop.
|
|
|
|
Beginning of the start time.
|
|
Keeps track of whether we've already been stopped.
|