34 bool Expired(
bool reset =
false);
44 bool operator() (
bool reset=
false)
48 bool operator() (
const Time_Clock &tm,
bool reset =
false)
58 Time_Span Duration()
const {
return _duration; };
62 _alarm_time += _duration;
63 if(_alarm_time <=curtime)
64 _alarm_time = curtime+_duration;
80 _alarm_time = tm + _duration;
90 _duration.Set(0, 0, 0, sec, 0);
111 _alarm_time = tm + _duration;
122 bool answer = (_alarm_time <= tm) ;
145 return _alarm_time - tm;
158 #endif //__TIME_OUT_H__
Time_Span Remaining() const
Return type : Time_Span Argument : void.
bool Expired(const Time_Clock &tm, bool reset=false)
Return type : bool Argument : const Time_Clock &tm.
void ResetAll(const Time_Clock &tm, const Time_Span &sp)
Return type : void Argument : const Time_Clock &tm Argument : const Time_Span &sp.
void ToCurrentTime()
Load this object with the current OS time Return type : inline void Argument : void.
void ResetTime(const Time_Clock &tm)
Return type : void Argument : const Time_Clock & tm.
void SetTimeOutSec(int sec)
Return type : void Argument : const Time_Clock &tm.
void ReStart()
Return type : void Argument : void.
static Time_Clock GetCurrentTime()
The Default no param constructor.