mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02:00
Use available command date if perl is not avail. in Darwin/FreeBSD.
This commit is contained in:
parent
3197d68fbb
commit
257ef061db
1 changed files with 5 additions and 1 deletions
|
@ -1861,7 +1861,11 @@ switch (command uname)
|
|||
set elapsed 0
|
||||
end
|
||||
|
||||
perl -MTime::HiRes -e 'printf("%.0f\n", (Time::HiRes::time() * 1000) - '$elapsed')'
|
||||
if command -s perl > /dev/null
|
||||
perl -MTime::HiRes -e 'printf("%.0f\n", (Time::HiRes::time() * 1000) - '$elapsed')'
|
||||
else
|
||||
math (command date "+%s") - $elapsed
|
||||
end
|
||||
end
|
||||
|
||||
case \*
|
||||
|
|
Loading…
Reference in a new issue