Merge branch 'Htylol-update-debug-timer' into devel
This commit is contained in:
commit
8f484a7635
@ -481,7 +481,11 @@ debug_timer () {
|
|||||||
elif [[ "$1" == "--end" ]] ; then
|
elif [[ "$1" == "--end" ]] ; then
|
||||||
END=$(date +%s%N)
|
END=$(date +%s%N)
|
||||||
DIFF=$((($END - $START)/1000000))
|
DIFF=$((($END - $START)/1000000))
|
||||||
|
if [[ -n "$2" ]] ; then
|
||||||
print_warning "It took $DIFF milliseconds for $2"
|
print_warning "It took $DIFF milliseconds for $2"
|
||||||
|
else
|
||||||
|
print_warning "It took $DIFF milliseconds"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user