1 #ifndef __TIME_GENERAL_H__ 2 #define __TIME_GENERAL_H__ 16 TimeDif(time2.GetTval(), time1.GetTval(), ans);
25 TimeDif(
Time_Span.GetTval(), time1.GetTval(), ans);
35 TimeAdd(time1.GetTval(),
Time_Span.GetTval(), ans);
43 _my_time.tv_usec +=
Time_Span._my_time.tv_usec;
44 _my_time.tv_sec +=
Time_Span._my_time.tv_sec;
45 NormalizeTime(_my_time);
62 return TimeDifference(tm, ts);
69 _my_time.tv_usec -=
Time_Span._my_time.tv_usec;
70 _my_time.tv_sec -=
Time_Span._my_time.tv_sec;
71 NormalizeTime(_my_time);
79 return TimeDifference(tm1, tm2);
82 #endif //__TIME_GENERAL_H__ This class is to provide a consistant interface and storage to clock time