Include timezone in stats output.

This commit is contained in:
Oliver Jowett 2015-02-17 21:35:23 +00:00
parent 03e096475c
commit af4f81caf7

View file

@ -69,10 +69,10 @@ void display_stats(struct stats *st) {
tt_start = st->start/1000; tt_start = st->start/1000;
localtime_r(&tt_start, &tm_start); localtime_r(&tt_start, &tm_start);
strftime(tb_start, sizeof(tb_start), "%c", &tm_start); strftime(tb_start, sizeof(tb_start), "%c %Z", &tm_start);
tt_end = st->end/1000; tt_end = st->end/1000;
localtime_r(&tt_end, &tm_end); localtime_r(&tt_end, &tm_end);
strftime(tb_end, sizeof(tb_end), "%c", &tm_end); strftime(tb_end, sizeof(tb_end), "%c %Z", &tm_end);
printf("Statistics: %s - %s\n", tb_start, tb_end); printf("Statistics: %s - %s\n", tb_start, tb_end);