Add '24hour-delta' timestamp option

When enabled this option will timestamp new lines with the time elapsed
since the line before.

This is a very useful feature to identify which events takes the most
time.
This commit is contained in:
Martin Lund 2022-07-05 16:05:35 +02:00
parent eecfa6485c
commit 732c0c3f89
4 changed files with 38 additions and 8 deletions

View file

@ -355,6 +355,9 @@ void handle_command_sequence(char input_char, char previous_char, char *output_c
case TIMESTAMP_24HOUR_START:
tio_printf("Switched to 24hour-start timestamp mode");
break;
case TIMESTAMP_24HOUR_DELTA:
tio_printf("Switched to 24hour-delta timestamp mode");
break;
case TIMESTAMP_ISO8601:
tio_printf("Switched to iso8601 timestamp mode");
break;