this wraps around any method call, mainly for 'make'.
mka needs this on linux, since ionice and schedtool don't
respect functions
Change-Id: If8cdd235ed9eba377dd90ab8b12e93036a377ea5
echo command make
}
-function make()
+function mk_timer()
{
local start_time=$(date +"%s")
- $(get_make_command) "$@"
+ $@
local ret=$?
local end_time=$(date +"%s")
local tdiff=$(($end_time-$start_time))
"$ANDROID_PRODUCT_OUT/provision-device" "$@"
}
+function make()
+{
+ mk_timer $(get_make_command) "$@"
+}
+
if [ "x$SHELL" != "x/bin/bash" ]; then
case `ps -o command -p $$` in
*bash*)