compiler_wrapper: android clang-tidy warnings on used seconds

Give a warning if clang-tidy used more than TIDY_TIMEOUT/2 seconds.
Users can fix it before it gets worse and times out.

BUG=b:199451930
TEST=Use a fake Android clang-tidy.real binary,
TEST=to dump passed environment variables and run for required time.

Change-Id: I8df7e4e3bb621cbf40094c7b97494e5978d7c6a2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/3200220
Reviewed-by: Chih-Hung Hsieh <chh@google.com>
Reviewed-by: Manoj Gupta <manojgupta@chromium.org>
Tested-by: George Burgess <gbiv@chromium.org>
Commit-Queue: George Burgess <gbiv@chromium.org>
1 file changed