+#include "config.h"
+
#include <ctype.h> /* ANSI C */
#include <errno.h>
#include <stdio.h>
/* Print time stamp. */
-time_t tstamp ( time_t last, FILE *f )
+static time_t tstamp ( time_t last, FILE *f )
{
- time_t now ;
- char tbuf [ MAXTSTAMP ] ;
+ time_t now = time ( NULL );
- now = time ( 0 ) ;
+ if ( ! last )
+ last = now;
- strftime ( tbuf, MAXTSTAMP, ( now - last > 600 ) ? "%c" : "%M:%S",
- localtime( &now ) ) ;
- fputs ( tbuf, f ) ;
+ printf ( "+%03ld", (long)(now - last) );
return now ;
}