adding Ronald's timestamp debug defines

Original commit message from CVS:
adding Ronald's timestamp debug defines
This commit is contained in:
Thomas Vander Stichele 2004-04-05 13:34:33 +00:00
parent 6572589d22
commit d1f07374c3
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,7 @@
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:

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