feat(script/lib_perf): use gtime if time doesn't work
This commit is contained in:
parent
7de7c5b73d
commit
b9114260f8
1 changed files with 4 additions and 0 deletions
|
@ -4,6 +4,10 @@
|
|||
TIME=/usr/bin/time
|
||||
REALPATH=realpath
|
||||
|
||||
if ! $TIME --format "$rf %e" ls 2> /dev/null > /dev/null; then
|
||||
TIME=gtime
|
||||
fi
|
||||
|
||||
MY_PATH="`dirname \"$0\"`"
|
||||
LEAN=$MY_PATH/../bin/lean
|
||||
LIB=$MY_PATH/../library
|
||||
|
|
Loading…
Reference in a new issue