mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Added timestamp format "epoch-usec"
This timestamp format will print the seconds since epoch along with subdivision in microseconds. Example: [1748009585.087083] tio v3.9-8-g2fb788f-dirty [1748009585.087156] Press ctrl-t q to quit [1748009585.087683] Connected to /dev/ttyUSB0
This commit is contained in:
parent
2fb788f817
commit
7e61a34df3
8 changed files with 28 additions and 5 deletions
|
|
@ -207,7 +207,7 @@ static void config_parse_keys(GKeyFile *key_file, char *group)
|
|||
config_get_bool(key_file, group, "timestamp", (bool*) &option.timestamp);
|
||||
if (option.timestamp != TIMESTAMP_NONE)
|
||||
{
|
||||
config_get_string(key_file, group, "timestamp-format", &string, "24hour", "24hour-start", "24hour-delta", "iso8601", "epoch", NULL);
|
||||
config_get_string(key_file, group, "timestamp-format", &string, "24hour", "24hour-start", "24hour-delta", "iso8601", "epoch", "epoch-usec", NULL);
|
||||
if (string != NULL)
|
||||
{
|
||||
option_parse_timestamp(string, &option.timestamp);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue