Skip to content

Commit 94976c6

Browse files
committed
Added floating point time notification
1 parent 0ea7dd9 commit 94976c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

workspace_tools/singletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def print_test_result(test_result, target_name, toolchain_name,
249249
tokens.append(test_id)
250250
tokens.append(test_description)
251251
separator = "::"
252-
time_info = " in %d of %d sec" % (elapsed_time, duration)
252+
time_info = " in %.2f of %d sec" % (round(elapsed_time, 2), duration)
253253
result = separator.join(tokens) + " [" + test_result +"]" + time_info
254254
return result
255255

0 commit comments

Comments
 (0)