Skip to content

Commit

Permalink
Print rounded build time to console
Browse files Browse the repository at this point in the history
  • Loading branch information
tong committed Jan 24, 2021
1 parent f2e2a3d commit 8619006
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion blender/arm/make.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import webbrowser
import shlex
import errno
import math

import bpy

Expand Down Expand Up @@ -431,7 +432,7 @@ def compilation_server_done():
log.error('Build failed, check console')

def build_done():
print('Finished in ' + str(time.time() - profile_time))
print('Finished in ' + str( math.ceil((time.time() - profile_time) * 100) / 100) + 's')
if log.num_warnings > 0:
log.print_warn(f'{log.num_warnings} warnings occurred during compilation')
if state.proc_build is None:
Expand Down

0 comments on commit 8619006

Please sign in to comment.