summaryrefslogtreecommitdiff
path: root/build-time
diff options
context:
space:
mode:
authorPeter Wu <lekensteyn@gmail.com>2013-10-28 11:11:44 +0100
committerPeter Wu <lekensteyn@gmail.com>2013-10-28 11:11:44 +0100
commit6426c805a90236c8a91f924831f310cf9dafeaf2 (patch)
tree1236160919f110433f51b86a233f737f1c3b2325 /build-time
parent85c7562d28a02c2b8d86f24ef7611757db4b89ed (diff)
downloadscripts-6426c805a90236c8a91f924831f310cf9dafeaf2.tar.gz
built-time: capture time to stdout
Diffstat (limited to 'build-time')
-rwxr-xr-xbuild-time4
1 files changed, 2 insertions, 2 deletions
diff --git a/build-time b/build-time
index 19d26b8..7b81b7e 100755
--- a/build-time
+++ b/build-time
@@ -105,14 +105,14 @@ run() {
echo
echo "Running $tag-$jobs"
temp_logger "$templog" & logpid=$!
- time {
+ { time {
sec1=$(date +%s)
mk -j$jobs bzImage modules >/dev/null 2>&1
sec2=$(date +%s)
echo "jobs=$jobs secs=$((sec2-sec1))"
echo -n "loadavg: "
cut -d\ -f1-3 /proc/loadavg
- } 2>&1
+ }; } 2>&1
kill $logpid; wait $logpid 2>/dev/null
# Very simple statistics