Files
OpenCellular/common/timer.c
Vadim Bendebury 7c2c423882 common: add decimal real number seconds value to timeirnfo output
The timerinfo command shows the number of microseconds since boot,
expressed as a hexadecimal value. Some of us are not as good in
converting hexadecimal seconds value into decimal number of seconds
and microseconds. This patch adds the decimal value to the output.

BRANCH=none
BUG=none
TEST=verified that timerinfo output makes sense:
   > time
   Time:     0x000000000b66d280 us, 191.287936 s
   ...
   > time
   Time:     0x000000000caec680 us, 212.780672 s

Change-Id: I3bd4ba16f3cfb74ba8fcec4899fbff0ab259007c
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/436804
Reviewed-by: Randall Spangler <rspangler@chromium.org>
2017-02-03 20:01:45 -08:00

7.3 KiB