Redirect time statistics to stdout (fixes #4)
This commit is contained in:
parent
4bfd1788ec
commit
3ede178eb3
4
nench.sh
4
nench.sh
@ -61,8 +61,8 @@ command_benchmark()
|
|||||||
|
|
||||||
if command_exists "$1"
|
if command_exists "$1"
|
||||||
then
|
then
|
||||||
time "$gnu_dd" if=/dev/zero bs=1M count=500 2> /dev/null | \
|
( time "$gnu_dd" if=/dev/zero bs=1M count=500 2> /dev/null | \
|
||||||
"$@" > /dev/null
|
"$@" > /dev/null ) 2>&1
|
||||||
else
|
else
|
||||||
if [ "$QUIET" -ne 1 ]
|
if [ "$QUIET" -ne 1 ]
|
||||||
then
|
then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user