mirror of
https://github.com/jorgebucaran/fisher
synced 2024-07-06 23:11:48 +02:00
Use available command date if perl is not avail. in Darwin/FreeBSD.
This commit is contained in:
parent
3197d68fbb
commit
257ef061db
|
@ -1861,7 +1861,11 @@ switch (command uname)
|
||||||
set elapsed 0
|
set elapsed 0
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
case \*
|
case \*
|
||||||
|
|
Loading…
Reference in a new issue