Avoid unnecessary checking in getting current time on 32-bit systems.

In ConvertTimespecToMicros(), int64_t is large enough to keep 32-bit time values in microseconds. The arithmetic checking for multiplication involves 64-bit division and can be slow. ConvertTimespecToMicros() is used by ClockNow(), and that can be used often.

Review-Url: https://codereview.chromium.org/2361803002
Cr-Commit-Position: refs/heads/master@{#422390}


CrOS-Libchrome-Original-Commit: 39e5faa419bfce4aee5172cf32c760180d698810
1 file changed
tree: 8e566d8d2a1c6890348d8f23827b0f97e37cb5aa
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/