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__ */