Skip to content

Commit 19878a3

Browse files
authored
Remove Perl dependency for time-tracking (#587)
1 parent e63b8d6 commit 19878a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

toolchain/templates/include/helpers.mako

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ END
7676
7777
cd "${os.path.dirname(input)}"
7878
79-
t_${target.name}_start=$(perl -MTime::HiRes=time -e 'printf "%.9f\n", time')
79+
t_${target.name}_start=$(python3 -c 'import time; print(time.time())')
8080
% else:
8181
echo ^:) Running ${target.name}.
8282
echo.
@@ -89,7 +89,7 @@ END
8989
% if os.name != 'nt':
9090
code=$?
9191
92-
t_${target.name}_stop=$(perl -MTime::HiRes=time -e 'printf "%.9f\n", time')
92+
t_${target.name}_stop=$(python3 -c 'import time; print(time.time())')
9393
9494
if [ $code -ne 0 ]; then
9595
echo

0 commit comments

Comments
 (0)