src/inc/verbose.h 1.9
1.9 2010/04/01 17:31:10 markd
fixed GCC portability issues
Index: src/inc/verbose.h
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/inc/verbose.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -b -B -U 4 -r1.8 -r1.9
--- src/inc/verbose.h 22 Jan 2009 00:43:10 -0000 1.8
+++ src/inc/verbose.h 1 Apr 2010 17:31:10 -0000 1.9
@@ -15,11 +15,15 @@
void verboseVa(int verbosity, char *format, va_list args);
/* Log with at given verbosity vprintf formatted args. */
+void verboseTimeInit(void);
+/* Initialize or reinitialize the previous time for use by verboseTime. */
+
void verboseTime(int verbosity, char *label, ...)
-/* Print label and how long it's been since last call. Call with
- * a NULL label to initialize. Verbosity level 1 */
+/* Print label and how long it's been since last call. Start time can be
+ * initialized with verboseTimeInit, otherwise the elapsed time will be
+ * zero. */
#if defined(__GNUC__)
__attribute__((format(printf, 2, 3)))
#endif
;