File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 4
4
export DEBIAN_FRONTEND=noninteractive
5
5
6
6
function travis_time_start {
7
- TRAVIS_START_TIME=$( date +%s%N )
7
+ TRAVIS_START_TIME=$( date +%s)
8
8
TRAVIS_TIME_ID=$( cat /dev/urandom | LC_ALL=C LC_CTYPE=C tr -dc ' a-z0-9' | fold -w 8 | head -n 1)
9
9
TRAVIS_FOLD_NAME=$1
10
10
echo -e " \e[0Ktravis_fold:start:$TRAVIS_FOLD_NAME "
@@ -14,7 +14,7 @@ function travis_time_start {
14
14
function travis_time_end {
15
15
set +x # disable debug information
16
16
_COLOR=${1:- 32}
17
- TRAVIS_END_TIME=$( date +%s%N )
17
+ TRAVIS_END_TIME=$( date +%s)
18
18
TIME_ELAPSED_SECONDS=$(( ($TRAVIS_END_TIME - $TRAVIS_START_TIME )/ 1000000000 ))
19
19
echo -e " travis_time:end:$TRAVIS_TIME_ID :start=$TRAVIS_START_TIME ,finish=$TRAVIS_END_TIME ,duration=$(( $TRAVIS_END_TIME - $TRAVIS_START_TIME )) \n\e[0K"
20
20
echo -e " travis_fold:end:$TRAVIS_FOLD_NAME "
You can’t perform that action at this time.
0 commit comments