summaryrefslogtreecommitdiff
path: root/timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'timer.h')
-rw-r--r--timer.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/timer.h b/timer.h
index e84f74c..2ab5045 100644
--- a/timer.h
+++ b/timer.h
@@ -30,4 +30,19 @@ class cMyTime {
void debug();
};
+// --- cTimeInterval -------------------------------------------------------------
+
+class cTimeInterval {
+ private:
+ time_t start;
+ time_t stop;
+ public:
+ cTimeInterval(time_t start, time_t stop);
+ virtual ~cTimeInterval(void);
+ time_t Start(void) { return start; };
+ time_t Stop(void) { return stop; };
+ cTimeInterval *Intersect(cTimeInterval *interval);
+ cTimeInterval *Union(cTimeInterval *interval);
+};
+
#endif //__TVGUIDE_TIMER_H \ No newline at end of file