diff options
author | Eugene Syromyatnikov <evgsyr@gmail.com> | 2023-05-10 19:55:30 +0200 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2023-05-10 18:08:00 +0000 |
commit | 4f1fad56cba89009d8aaf63d24b34279d912b333 (patch) | |
tree | 22d3d43f388ed3c36ddb13c40db4779af3a53c72 /tests/pure_executables.list | |
parent | 6387801953c6d04fac0fcc86db23507774a706c8 (diff) | |
download | strace-4f1fad56cba89009d8aaf63d24b34279d912b333.tar.gz |
util: factor out printing of time interval in a human-readable form
Also, remove all this dance with separate fractional part printing as %f
doesn't trim the trailing zeroes and checking whether %g does the right
thing in all cases is too much hassle.
* src/defs.h (print_ticks): New declaration.
* src/util.c (print_ticks): New function.
(print_clock_t): Call it.
Diffstat (limited to 'tests/pure_executables.list')
0 files changed, 0 insertions, 0 deletions