time: Move timer_us function into libpayload.

Some of the timer infrastructure was already in libpayload but it was missing
this particular piece. This function is useful in libpayload and in general
for payloads, so lets move it there.

BUG=None
TEST=Built and booted on link.
BRANCH=None

Change-Id: I4f57a7d8899e3ee84807945765dcd4590fad8393
Signed-off-by: Gabe Black <gabeblack@google.com>
Reviewed-on: https://chromium-review.googlesource.com/179605
Reviewed-by: Ronald Minnich <rminnich@chromium.org>
Commit-Queue: Gabe Black <gabeblack@chromium.org>
Tested-by: Gabe Black <gabeblack@chromium.org>
22 files changed