From d1f07374c3bf7c97ea3adece98dd6f9eee258dd9 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Mon, 5 Apr 2004 13:34:33 +0000 Subject: [PATCH] adding Ronald's timestamp debug defines Original commit message from CVS: adding Ronald's timestamp debug defines --- ChangeLog | 4 ++++ gst/gstinfo.h | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index 53fa755798..dc15c12742 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2004-04-05 Thomas Vander Stichele + + * gst/gstinfo.h: adding Ronald's timestamp debugging defines + 2004-04-05 Thomas Vander Stichele * testsuite/elements/Makefile.am: diff --git a/gst/gstinfo.h b/gst/gstinfo.h index 7f76ce2339..fd2ecc1c88 100644 --- a/gst/gstinfo.h +++ b/gst/gstinfo.h @@ -521,6 +521,14 @@ G_CONST_RETURN gchar* void gst_debug_print_stack_trace (void); +/* timestamp debugging macros */ +#define GST_TIME_FORMAT "%u:%02u:%02u:%09u" +#define GST_TIME_ARGS(t) \ + (guint) (t / (GST_SECOND * 60 * 60)), \ + (guint) ((t / (GST_SECOND * 60)) % 60), \ + (guint) ((t / GST_SECOND) % 60), \ + (guint) (t % GST_SECOND) + G_END_DECLS #endif /* __GSTINFO_H__ */