timediff 2.1

timediff is a simple command-line utility that reads text prefixed with a timestamp, and prints the time difference between one line and the next. It was created for use in industrial automation environments to investigate which process steps are slowest or detect abnormal delays.

Tags c utility time logging
License GNU GPLv3
State mature

Recent Releases

2.128 Feb 2025 15:53 minor feature: If start and end patterns are defined, and -min or -max is used to exclude things by time, then exclude the entire block, rather than just lines within it.
1.329 Nov 2024 07:25 minor feature: Don't include first item in 'minimum time' (as that will always be zero). Add 'total time' to stats.
1.208 Oct 2024 05:23 minor feature: Handle micro-seconds roll-over when calculating times. Handle strace 'pid' header at start of line.
1.111 Jan 2024 09:24 minor feature: v1.1 adds support for 'dmesg' style logs where the timestamp is number of seconds/microseconds since boot or since the unix epoch.