adding Ronald's timestamp debug defines
authorThomas Vander Stichele <thomas@apestaart.org>
Mon, 5 Apr 2004 13:34:33 +0000 (13:34 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Mon, 5 Apr 2004 13:34:33 +0000 (13:34 +0000)
Original commit message from CVS:
adding Ronald's timestamp debug defines

ChangeLog
gst/gstinfo.h

index 53fa755..dc15c12 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2004-04-05  Thomas Vander Stichele  <thomas at apestaart dot org>
 
+       * gst/gstinfo.h: adding Ronald's timestamp debugging defines
+
+2004-04-05  Thomas Vander Stichele  <thomas at apestaart dot org>
+
        * testsuite/elements/Makefile.am:
           disable test until it stops breaking make distcheck
 
index 7f76ce2..fd2ecc1 100644 (file)
@@ -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__ */