[autotest] measure time spent on scheduling a host to a job

Measures the time spent from the creation of a job to
the point when host-scheduler assigns a host to the job.
Send the data to metadata db.

TEST=run host_scheduler locally, observed the data shows up
in metadata db.
BUG=chromium:422581
DEPLOY=host-scheduler

Change-Id: Ifa0c473797a5c608940b0a9448352e621aeb4741
Reviewed-on: https://chromium-review.googlesource.com/224464
Reviewed-by: Prashanth B <beeps@chromium.org>
Reviewed-by: Dan Shi <dshi@chromium.org>
Tested-by: Fang Deng <fdeng@chromium.org>
Commit-Queue: Fang Deng <fdeng@chromium.org>
2 files changed