summaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
authorThomas Günther <tom@toms-cafe.de>2009-06-21 03:04:34 +0200
committerThomas Günther <tom@toms-cafe.de>2009-06-21 03:04:34 +0200
commitea25399458d35ca25e3477200baa1b393a577b37 (patch)
tree93d9b12177384e6aff92adb36342f02291444473 /common.h
parentc51a331d720c7e2fb5252c6cf4c1ddd4b4b8a8a1 (diff)
downloadvdr-plugin-text2skin-ea25399458d35ca25e3477200baa1b393a577b37.tar.gz
vdr-plugin-text2skin-ea25399458d35ca25e3477200baa1b393a577b37.tar.bz2
Removed backward compatibility to VDR < 1.6.0 (closes #137)
Diffstat (limited to 'common.h')
-rw-r--r--common.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/common.h b/common.h
index f596a01..c5f0645 100644
--- a/common.h
+++ b/common.h
@@ -20,24 +20,16 @@
# else
# define Dprintf(x...)
# endif
-# define Dbench(x) uint64_t bench_##x = time_ms()
-# define Ddiff(t,x) fprintf(stderr, "%s took %llu ms\n", t, time_ms() - bench_##x)
+# define Dbench(x) uint64_t bench_##x = cTimeMs::Now()
+# define Ddiff(t,x) fprintf(stderr, "%s took %llu ms\n", t, cTimeMs::Now() - bench_##x)
#else
# define Dprintf(x...)
# define Dbench(x)
# define Ddiff(t,x)
#endif
-#define DStartBench(x) uint64_t bench_##x = time_ms()
-#define DShowBench(t,x) fprintf(stderr, "%s took %llu ms\n", t, time_ms() - bench_##x)
-
-#if VDRVERSNUM >= 10318
-# define time_ms() cTimeMs::Now()
-# define Apid1() Apid(0)
-# define Apid2() Apid(1)
-# define Dpid1() Dpid(0)
-# define Dpid2() Dpid(1)
-#endif
+#define DStartBench(x) uint64_t bench_##x = cTimeMs::Now()
+#define DShowBench(t,x) fprintf(stderr, "%s took %llu ms\n", t, cTimeMs::Now() - bench_##x)
/* Check if a channel is a radio station. */
#define ISRADIO(x) ((x)->Vpid()==0||(x)->Vpid()==1||(x)->Vpid()==0x1fff)