mirror of
https://github.com/jorgebucaran/fisher
synced 2024-06-24 22:51:49 +02:00
refactor: date +%s%3N should work on Linux (or print only seconds)
This commit is contained in:
parent
e1469e5a39
commit
37335526dc
|
@ -473,6 +473,6 @@ function _fisher_now -a elapsed
|
|||
case Darwin \*BSD
|
||||
command perl -MTime::HiRes -e 'printf("%.0f\n", (Time::HiRes::time() * 1000) - $ARGV[0])' $elapsed
|
||||
case \*
|
||||
command date "+%s%3N" | command awk -v ELAPSED="$elapsed" '{ print $0 - ELAPSED }'
|
||||
math (command date "+%s%3N") - "0$elapsed"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue