Skip to content

Commit

Permalink
[feat/#97] Fix: times.txt path
Browse files Browse the repository at this point in the history
  • Loading branch information
NayeonKeum committed Sep 29, 2023
1 parent ad910cd commit 6622ca2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
6 changes: 4 additions & 2 deletions resources/images/professor-ubuntu/server/getValueAndTime_c.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ start=`date +%s.%N`

/usr/bin/gcc $1 -o $2/test.out
$2/test.out > $2/values.txt
/usr/bin/rm -rf $2/test.out

finish=`date +%s.%N`


diff=$( echo "$finish - $start" | bc -l )
/usr/bin/echo $diff > $2/time.txt
# diff=$( echo "$finish - $start" | bc -l )
# /usr/bin/echo $diff > $2/time.txt
/usr/bin/echo "" > $2/time.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ start=`date +%s.%N`

/usr/bin/g++ -o $2/test $1
$2/test > $2/values.txt
/usr/bin/rm -rf $2/test

finish=`date +%s.%N`


diff=$( echo "$finish - $start" | bc -l )
/usr/bin/echo $diff > $2/time.txt
# diff=$( echo "$finish - $start" | bc -l )
# /usr/bin/echo $diff > $2/time.txt
/usr/bin/echo "" > $2/time.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ start=`date +%s.%N`
finish=`date +%s.%N`


diff=$( echo "$finish - $start" | bc -l )
/usr/bin/echo $diff > $2/time.txt
# diff=$( echo "$finish - $start" | bc -l )
# /usr/bin/echo $diff > $2/time.txt
/usr/bin/echo "" > $2/time.txt

0 comments on commit 6622ca2

Please sign in to comment.