showlog: Add support for --time-format=duration
commit047a9fc48183e84edd60892be7148ab66a0ea11f
authorAndreas Ericsson <ae@op5.se>
Wed, 7 Apr 2010 13:09:31 +0000 (7 15:09 +0200)
committerAndreas Ericsson <ae@op5.se>
Wed, 7 Apr 2010 13:14:59 +0000 (7 15:14 +0200)
treec55338662f42e1e64289f880828e57ce0b46193f
parent4aea175397f0d414608e5484b1ebde1771d222a6
showlog: Add support for --time-format=duration

This is immensely useful when debugging report-bugs and other
types of logfile- or report anomalies. Calculating the duration
of each event used to be an immensely tedious task, and
especially so when we get large report-bug-reports (ehh...),
which can contain several million lines.

So far, this is really only useful for calculating totals for
a single object, but with the groundwork laid we can easily
build a per-object state duration counter for this feature.

Signed-off-by: Andreas Ericsson <ae@op5.se>
showlog.c