Skip to content

Commit 87bd95d

Browse files
committed
New timing extractor script
1 parent 2c2fb4c commit 87bd95d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/zsh
2+
set -eu
3+
4+
# GET TIME
5+
# Extract startup time info from Python log output
6+
7+
FILE=$1
8+
9+
START=$( grep "WORKFLOW START" ${FILE} | zclm 3 )
10+
STOP=$( grep "DO_N_FOLD START" ${FILE} | tail -1 | zclm 7 )
11+
12+
print $(( STOP - START ))

0 commit comments

Comments
 (0)