GDCM
2.4.5
|
ARTIMTimer This file contains the code for the ARTIM timer. More...
#include <gdcmARTIMTimer.h>
Public Member Functions | |
ARTIMTimer () | |
double | GetElapsedTime () const |
bool | GetHasExpired () const |
double | GetTimeout () const |
void | SetTimeout (double inTimeout) |
void | Start () |
void | Stop () |
ARTIMTimer This file contains the code for the ARTIM timer.
Basically, the ARTIM timer will just get the wall time when it's started, and then can be queried for the current time, and then can be stopped (ie, the start time reset).
Because we're trying to do this without threading, we should be able to 'start' the ARTIM timer by this mechanism, and then when waiting for a particular response, tight loop that with sleep calls and determinations of when the ARTIM timer has reached its peak. As such, this isn't a strict 'timer' in the traditional sense of the word, but more of a time keeper.
There can be only one ARTIM timer per connection.
gdcm::network::ARTIMTimer::ARTIMTimer | ( | ) |
double gdcm::network::ARTIMTimer::GetElapsedTime | ( | ) | const |
bool gdcm::network::ARTIMTimer::GetHasExpired | ( | ) | const |
double gdcm::network::ARTIMTimer::GetTimeout | ( | ) | const |
void gdcm::network::ARTIMTimer::SetTimeout | ( | double | inTimeout | ) |
void gdcm::network::ARTIMTimer::Start | ( | ) |
void gdcm::network::ARTIMTimer::Stop | ( | ) |