Skip to content

Commit d020049

Browse files
JordanYatesnashif
authored andcommitted
scripts: twisterlib: main: trim run duration
Display the total run duration to two decimal points instead of ~14, similar to the other displayed timestamps. Signed-off-by: Jordan Yates <jordan@embeint.com>
1 parent d1cd982 commit d020049

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/pylib/twister/twisterlib/twister_main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def twister(options: argparse.Namespace, default_options: argparse.Namespace) ->
182182

183183
if options.dry_run:
184184
duration = time.time() - start_time
185-
logger.info(f"Completed in {duration} seconds")
185+
logger.info(f"Completed in {duration:.2f} seconds")
186186
return 0
187187

188188
if options.short_build_path:

0 commit comments

Comments
 (0)